Skip to content

Commit

Permalink
Update a bunch of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pjrebsch committed Mar 22, 2024
1 parent b9104e1 commit 0907a4a
Show file tree
Hide file tree
Showing 66 changed files with 19,068 additions and 22,126 deletions.
3 changes: 0 additions & 3 deletions .github/actions/.gitignore

This file was deleted.

31 changes: 15 additions & 16 deletions .github/actions/slack-action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@
"private": true,
"license": "UNLICENSED",
"dependencies": {
"@execonline-inc/appy": "workspace:*",
"@execonline-inc/decoders": "workspace:*",
"@execonline-inc/environment": "workspace:*",
"@execonline-inc/error-handling": "workspace:*",
"@execonline-inc/logging": "workspace:*",
"@execonline-inc/maybe-adapter": "^5.0.0",
"@execonline-inc/url": "^9.0.0",
"@kofno/piper": "^4.3.0",
"@types/node": "^18.8.1",
"ajaxios": "^2.10.0",
"axios": "^0.25.0",
"jsonous": "^7.7.0",
"prettier": "^2.7.1",
"taskarian": "^5.4.0",
"ts-node": "^10.9.0",
"typescript": "^5.0.4"
"@execonline-inc/appy": "workspace:^",
"@execonline-inc/decoders": "workspace:^",
"@execonline-inc/environment": "workspace:^",
"@execonline-inc/error-handling": "workspace:^",
"@execonline-inc/logging": "workspace:^",
"@execonline-inc/maybe-adapter": "workspace:^",
"@execonline-inc/url": "workspace:^",
"@kofno/piper": "^5.0.1",
"@types/node": "^20.11.30",
"ajaxios": "^2.13.0",
"jsonous": "^8.0.0",
"prettier": "^3.2.5",
"taskarian": "^6.0.0",
"ts-node": "^10.7.0",
"typescript": "^5.4.3"
},
"scripts": {
"notify": "ts-node src/index.ts"
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/slack-action/src/Event/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { asTask } from '@execonline-inc/error-handling';
import Task from 'taskarian';
import { Task } from 'taskarian';
import { messageDecoder } from '../Decoders';
import { eventDecodeFailed, ActionFailed, Message } from '../Types';
import { ActionFailed, Message, eventDecodeFailed } from '../Types';

interface EventObject {
context: string;
Expand Down
8 changes: 2 additions & 6 deletions .github/actions/slack-action/src/Quote.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { InvalidUrlError, toUrlT, URLParser } from '@execonline-inc/url';
import { get, Header, HttpError, toHttpTask } from 'ajaxios';
import Task from 'taskarian';
import { Task } from 'taskarian';
import { jokeDecoder } from './Decoders';
import { Joke } from './Types';

Expand All @@ -13,10 +13,6 @@ const header: Header = { field: 'Accept', value: 'application/json' };
const validateUrl = (href: string): Task<QuoteError, URLParser> => toUrlT(href);

export const getJoke = (url: URLParser): Task<QuoteError, Joke> =>
toHttpTask(
get(url.toString())
.withHeader(header)
.withDecoder(jokeDecoder),
);
toHttpTask(get(url.toString()).withHeader(header).withDecoder(jokeDecoder));

export const fetchDadJoke = () => validateUrl(href).andThen(getJoke);
2 changes: 1 addition & 1 deletion .github/actions/slack-action/src/SlackMessage/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HttpError, post, toHttpTask } from 'ajaxios';
import Task from 'taskarian';
import { Task } from 'taskarian';
import { slackChannel, slackWebhookUrl } from '../Environment';
import { fetchDadJoke } from '../Quote';
import {
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/slack-action/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { logWithTimestamp } from '@execonline-inc/logging';
import Task from 'taskarian';
import { Task } from 'taskarian';
import { readContext } from './Environment';
import { decodeEvent } from './Event';
import { sendMessage } from './SlackMessage';
Expand Down
Loading

0 comments on commit 0907a4a

Please sign in to comment.