Socket
Socket
Sign inDemoInstall

paddle-sdk

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paddle-sdk - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

cjs/version.d.ts

5

cjs/sdk.js

@@ -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"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc