@artaio/node-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@artaio/node-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
{ | ||
"name": "@artaio/node-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The Arta Node library provides a seamless integration to Arta API for backend applications using both Typescript or Javascript.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -23,9 +23,11 @@ Arta Node.js Library | ||
```js | ||
// With top level async/await | ||
const { Arta } = require('@artaio/node-api'); | ||
const arta = new Arta('<YOUR_API_TOKEN>'); | ||
const { items } = arta.webhooks.list(); | ||
const { items } = await arta.webhooks.list(); | ||
const myHook = items[0]; | ||
myHook.ping().then(console.log); | ||
const pingResult = await myHook.ping(); | ||
console.log(pingResult); | ||
``` | ||
@@ -35,9 +37,11 @@ | ||
```ts | ||
import { Arta, Webhook } from '@artaio/node-api'; | ||
// With top level async/await | ||
import { Arta, type Webhook } from '@artaio/node-api'; | ||
const arta: Arta = new Arta('<YOUR_API_TOKEN>'); | ||
const { items } = arta.webhooks.list(); | ||
const { items } = await arta.webhooks.list(); | ||
const myHook: Webhook = items[0]; | ||
myHook.ping().then(console.log); | ||
const pingResult = await myHook.ping(); | ||
console.log(pingResult); | ||
``` | ||
@@ -44,0 +48,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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
58
0
179571
68
3166