paddle-sdk
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -9,5 +9,4 @@ "use strict"; | ||
const got_1 = __importDefault(require("got")); | ||
const fs_1 = __importDefault(require("fs")); | ||
const serialize_1 = __importDefault(require("./serialize")); | ||
const PACKAGE = JSON.parse(fs_1.default.readFileSync('./package.json', 'utf-8')); | ||
const version_1 = require("./version"); | ||
const VENDOR_SANDBOX_URL = 'https://sandbox-vendors.paddle.com/api/2.0'; | ||
@@ -375,3 +374,3 @@ const VENDOR_SERVER_URL = 'https://vendors.paddle.com/api/2.0'; | ||
headers: { | ||
'User-Agent': `paddle-sdk/${PACKAGE.version} (${PACKAGE.repository.url})`, | ||
'User-Agent': `paddle-sdk/${version_1.VERSION} (https://github.com/avaly/paddle-sdk)`, | ||
...(headers || {}), | ||
@@ -378,0 +377,0 @@ }, |
import crypto from 'crypto'; | ||
import got from 'got'; | ||
import fs from 'fs'; | ||
import serialize from './serialize.js'; | ||
const PACKAGE = JSON.parse(fs.readFileSync('./package.json', 'utf-8')); | ||
import { VERSION } from './version.js'; | ||
const VENDOR_SANDBOX_URL = 'https://sandbox-vendors.paddle.com/api/2.0'; | ||
@@ -375,3 +374,3 @@ const VENDOR_SERVER_URL = 'https://vendors.paddle.com/api/2.0'; | ||
headers: { | ||
'User-Agent': `paddle-sdk/${PACKAGE.version} (${PACKAGE.repository.url})`, | ||
'User-Agent': `paddle-sdk/${VERSION} (https://github.com/avaly/paddle-sdk)`, | ||
...(headers || {}), | ||
@@ -378,0 +377,0 @@ }, |
{ | ||
"name": "paddle-sdk", | ||
"description": "The Paddle.com Node.js SDK", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"type": "module", | ||
"main": "./cjs/sdk.js", | ||
"exports": "./esm/sdk.js", | ||
"main": "./cjs/index.js", | ||
"exports": { | ||
"import": "./esm/index.js", | ||
"require": "./cjs/index.js" | ||
}, | ||
"types": "./esm/sdk.d.ts", | ||
@@ -38,2 +41,3 @@ "author": "Valentin Agachi <github-com@agachi.name>", | ||
"test:coverage": "jest --coverage", | ||
"test:build": "./tests/build.sh", | ||
"test:jest": "jest", | ||
@@ -70,3 +74,8 @@ "test:pretty": "prettier --check \"**/*.ts\"", | ||
} | ||
}, | ||
"standard-version": { | ||
"scripts": { | ||
"postbump": "yarn build && git add ./src/version.ts" | ||
} | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
76270
24
2037
0
0