@artaio/node-api
Advanced tools
Comparing version 0.27.0 to 0.29.0
{ | ||
"name": "arta-node", | ||
"version": "0.26.1", | ||
"name": "@artaio/node-api", | ||
"version": "0.29.0", | ||
"description": "The Arta Node library provides a seamless integration to Arta API for applications running on Node.js using both Typescript or Javascript.", | ||
@@ -20,2 +20,7 @@ "scripts": { | ||
], | ||
"homepage": "https://github.com/artaio/arta-node-api", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/artaio/arta-node-api.git" | ||
}, | ||
"keywords": [], | ||
@@ -49,3 +54,7 @@ "author": "ARTA <hello@arta.io> (https://arta.io/)", | ||
"typescript": "^4.8.4" | ||
} | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/artaio/arta-node-api/issues" | ||
}, | ||
"license": "MIT" | ||
} |
{ | ||
"name": "@artaio/node-api", | ||
"version": "0.27.0", | ||
"version": "0.29.0", | ||
"description": "The Arta Node library provides a seamless integration to Arta API for applications running on Node.js using both Typescript or Javascript.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -16,3 +16,3 @@ Arta Node.js Library | ||
``` | ||
$ npm install arta-node | ||
$ npm install @artaio/node-api | ||
``` | ||
@@ -22,10 +22,9 @@ | ||
```js | ||
const { Arta } = require('arta-node'); | ||
const { Arta } = require('@artaio/node-api'); | ||
const arta = new Arta('<YOUR_API_TOKEN>'); | ||
const endpoints = arta.endpoint.list(); | ||
const { items } = arta.webhooks.list(); | ||
const myHook = items[0]; | ||
const myEndpoint = endpoint[0]; | ||
myEndpoint.ping().then(console.log); | ||
myHook.ping().then(console.log); | ||
``` | ||
@@ -35,10 +34,9 @@ | ||
```ts | ||
import { Arta } from 'arta-node'; | ||
import { Arta, Webhook } from '@artaio/node-api'; | ||
const arta: Arta = new Arta('<YOUR_API_TOKEN>'); | ||
const endpoints: ArtaEndpoint[] = arta.endpoint.list(); | ||
const { items } = arta.webhooks.list(); | ||
const myHook: Webhook = items[0]; | ||
const myEndpoint: ArtaEndpoint = endpoint[0]; | ||
myEndpoint.ping().then(console.log); | ||
myHook.ping().then(console.log); | ||
``` | ||
@@ -45,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132401
46