@plunk/node
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -5,3 +5,2 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const native_fetch_1 = require("native-fetch"); | ||
const NotFound_1 = require("../errors/NotFound"); | ||
@@ -56,3 +55,3 @@ const TokenError_1 = require("../errors/TokenError"); | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const res = yield (0, native_fetch_1.fetch)(new URL(url, "https://api.useplunk.com/v1/").toString(), Object.assign(Object.assign({}, options), { headers: Object.assign(Object.assign({ Authorization: `Bearer ${this.key}` }, (json && { "Content-Type": "application/json" })), options.headers), body: json ? JSON.stringify(json) : undefined })); | ||
const res = yield fetch(new URL(url, "https://api.useplunk.com/v1/").toString(), Object.assign(Object.assign({}, options), { headers: Object.assign(Object.assign({ Authorization: `Bearer ${this.key}` }, (json && { "Content-Type": "application/json" })), options.headers), body: json ? JSON.stringify(json) : undefined })); | ||
const text = yield res.text(); | ||
@@ -59,0 +58,0 @@ const data = safeJsonParse(text); |
{ | ||
"name": "@plunk/node", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Official Node.js library for useplunk.com", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"exports": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"author": "driaug <dries@useplunk.com>", | ||
@@ -11,4 +12,3 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "eslint . --fix&&jest", | ||
"prepublishOnly": "npm run test&&npm run build", | ||
"prepublishOnly": "npm run build", | ||
"deploy": "npm publish --access public", | ||
@@ -23,14 +23,9 @@ "build": "tsc" | ||
"dependencies": { | ||
"native-fetch": "^4.0.2", | ||
"tslib": "^2.4.0", | ||
"undici": "^5.22.1" | ||
"tslib": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^28.1.4", | ||
"@typescript-eslint/eslint-plugin": "^5.30.3", | ||
"@typescript-eslint/parser": "^5.30.3", | ||
"eslint": "^8.19.0", | ||
"jest": "^28.1.2", | ||
"prettier": "^2.7.1", | ||
"ts-jest": "^28.0.5", | ||
"typescript": "^4.7.4" | ||
@@ -37,0 +32,0 @@ }, |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
1
5
Yes
9785
190
1
- Removednative-fetch@^4.0.2
- Removedundici@^5.22.1
- Removed@fastify/busboy@2.1.1(transitive)
- Removednative-fetch@4.0.2(transitive)
- Removedundici@5.28.5(transitive)