New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

checkout-sdk-node

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

checkout-sdk-node - npm Package Compare versions

Comparing version 1.0.24 to 1.0.25

2

dist/Checkout.js

@@ -18,3 +18,3 @@ "use strict";

return _config.LIVE_SECRET_KEY_REGEX.test(key) ? _config.LIVE_BASE_URL : _config.SANDBOX_BASE_URL;
return _config.MBC_LIVE_SECRET_KEY_REGEX.test(key) || _config.NAS_LIVE_SECRET_KEY_REGEX.test(key) ? _config.LIVE_BASE_URL : _config.SANDBOX_BASE_URL;
};

@@ -21,0 +21,0 @@

@@ -6,3 +6,3 @@ "use strict";

});
exports.CURRENCIES = exports.PAYMENT_TYPES = exports.SOURCE_ID_REGEX = exports.CARD_TOKEN_REGEX = exports.SANDBOX_PUBLIC_KEY_REGEX = exports.SANDBOX_SECRET_KEY_REGEX = exports.LIVE_PUBLIC_KEY_REGEX = exports.LIVE_SECRET_KEY_REGEX = exports.DEFAULT_TIMEOUT = exports.API_VERSION_HEADER = exports.REQUEST_ID_HEADER = exports.LIVE_BASE_URL = exports.SANDBOX_BASE_URL = void 0;
exports.CURRENCIES = exports.PAYMENT_TYPES = exports.SOURCE_ID_REGEX = exports.CARD_TOKEN_REGEX = exports.NAS_LIVE_SECRET_KEY_REGEX = exports.MBC_LIVE_SECRET_KEY_REGEX = exports.DEFAULT_TIMEOUT = exports.API_VERSION_HEADER = exports.REQUEST_ID_HEADER = exports.LIVE_BASE_URL = exports.SANDBOX_BASE_URL = void 0;
const SANDBOX_BASE_URL = 'https://api.sandbox.checkout.com';

@@ -18,10 +18,6 @@ exports.SANDBOX_BASE_URL = SANDBOX_BASE_URL;

exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
const LIVE_SECRET_KEY_REGEX = /^sk_?(\w{8})-(\w{4})-(\w{4})-(\w{4})-(\w{12})$/;
exports.LIVE_SECRET_KEY_REGEX = LIVE_SECRET_KEY_REGEX;
const LIVE_PUBLIC_KEY_REGEX = /^pk_?(\w{8})-(\w{4})-(\w{4})-(\w{4})-(\w{12})$/;
exports.LIVE_PUBLIC_KEY_REGEX = LIVE_PUBLIC_KEY_REGEX;
const SANDBOX_SECRET_KEY_REGEX = /^sk_test_?(\w{8})-(\w{4})-(\w{4})-(\w{4})-(\w{12})$/;
exports.SANDBOX_SECRET_KEY_REGEX = SANDBOX_SECRET_KEY_REGEX;
const SANDBOX_PUBLIC_KEY_REGEX = /^pk_?(\w{8})-(\w{4})-(\w{4})-(\w{4})-(\w{12})$/;
exports.SANDBOX_PUBLIC_KEY_REGEX = SANDBOX_PUBLIC_KEY_REGEX;
const MBC_LIVE_SECRET_KEY_REGEX = /^sk_?(\w{8})-(\w{4})-(\w{4})-(\w{4})-(\w{12})$/;
exports.MBC_LIVE_SECRET_KEY_REGEX = MBC_LIVE_SECRET_KEY_REGEX;
const NAS_LIVE_SECRET_KEY_REGEX = /^sk_?(\w{27})$/;
exports.NAS_LIVE_SECRET_KEY_REGEX = NAS_LIVE_SECRET_KEY_REGEX;
const CARD_TOKEN_REGEX = /^(tok)_(\w{26})$/;

@@ -28,0 +24,0 @@ exports.CARD_TOKEN_REGEX = CARD_TOKEN_REGEX;

{
"name": "checkout-sdk-node",
"version": "1.0.24",
"version": "1.0.25",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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