ntfy 1.3.1 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@ Send notifications over [ntfy.sh](https://ntfy.sh).
5
5
  ## Prerequisites
6
6
 
7
7
  - [Node.js](https://nodejs.org) >= 14
8
- - npm (preinstalled) or [yarn](https://classic.yarnpkg.com) < 2
8
+ - npm (preinstalled) or [yarn](https://classic.yarnpkg.com)
9
9
 
10
10
  ## Installation
11
11
 
@@ -20,7 +20,7 @@ Run `yarn add ntfy` or `npm i ntfy`.
20
20
  ```ts
21
21
  import {publish} from 'ntfy';
22
22
 
23
- await ntfyClient.publish({
23
+ await publish({
24
24
  message: 'This is an example message.',
25
25
  topic: 'mytopic',
26
26
  });
@@ -31,7 +31,7 @@ await ntfyClient.publish({
31
31
  ```ts
32
32
  import {publish, MessagePriority} from 'ntfy';
33
33
 
34
- await ntfyClient.publish({
34
+ await publish({
35
35
  actions: [
36
36
  {
37
37
  clear: true,
@@ -10,5 +10,5 @@ export var MessagePriority;
10
10
  MessagePriority[MessagePriority["LOW"] = 2] = "LOW";
11
11
  /** No vibration or sound. The notification will be under the fold in "Other notifications". */
12
12
  MessagePriority[MessagePriority["MIN"] = 1] = "MIN";
13
- })(MessagePriority = MessagePriority || (MessagePriority = {}));
13
+ })(MessagePriority || (MessagePriority = {}));
14
14
  //# sourceMappingURL=interfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,eAWX;AAXD,WAAY,eAAe;IACzB,6FAA6F;IAC7F,mDAAO,CAAA;IACP,qFAAqF;IACrF,qDAAQ,CAAA;IACR,wEAAwE;IACxE,2DAAW,CAAA;IACX,6GAA6G;IAC7G,mDAAO,CAAA;IACP,+FAA+F;IAC/F,mDAAO,CAAA;AACT,CAAC,EAXW,eAAe,GAAf,eAAe,KAAf,eAAe,QAW1B"}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,eAWX;AAXD,WAAY,eAAe;IACzB,6FAA6F;IAC7F,mDAAO,CAAA;IACP,qFAAqF;IACrF,qDAAQ,CAAA;IACR,wEAAwE;IACxE,2DAAW,CAAA;IACX,6GAA6G;IAC7G,mDAAO,CAAA;IACP,+FAA+F;IAC/F,mDAAO,CAAA;AACT,CAAC,EAXW,eAAe,KAAf,eAAe,QAW1B"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {
4
- "axios": "1.3.6"
4
+ "axios": "1.6.1"
5
5
  },
6
6
  "description": "Send notifications over ntfy.sh.",
7
7
  "devDependencies": {
8
- "rimraf": "5.0.0",
9
- "typescript": "5.0.4"
8
+ "rimraf": "5.0.5",
9
+ "typescript": "5.2.2"
10
10
  },
11
11
  "engines": {
12
12
  "node": ">= 14.16"
@@ -40,6 +40,6 @@
40
40
  "test": "ts-node-esm -P tsconfig.jasmine.json ../../node_modules/.bin/jasmine"
41
41
  },
42
42
  "type": "module",
43
- "version": "1.3.1",
44
- "gitHead": "fee6dde4396255259028c1c723a95b9f6ec5b281"
43
+ "version": "1.4.1",
44
+ "gitHead": "bb5b97965f04bba13e813a2998873f974909b68a"
45
45
  }