Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

trust-my-travel-legacy

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trust-my-travel-legacy - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

6

dist/index.d.ts

@@ -56,7 +56,7 @@ /**

*/
city: string;
city?: string;
/**
* State / County
*/
state: string;
state?: string;
/**

@@ -101,3 +101,3 @@ * Country ISO

*/
line_items: string;
line_items?: string;
/**

@@ -104,0 +104,0 @@ * Spreedly payment token

@@ -63,2 +63,2 @@ "use strict";

})(Currency = exports.Currency || (exports.Currency = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxtQ0FBc0M7QUFFdEM7O0dBRUc7QUFDSCxNQUFxQixhQUFhO0lBT2hDOzs7O09BSUc7SUFDSCxZQUFZLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxJQUFJLEdBQUcsS0FBSyxFQUFVO1FBQ3RELElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxNQUFNLEdBQUcscUJBQVksQ0FBQztZQUN6QixJQUFJLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDLENBQUMsMkJBQTJCO1lBQzlELElBQUksRUFBRSxFQUFFO1lBQ1IsSUFBSSxFQUFFLGFBQWE7U0FDcEIsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUVPLFVBQVUsQ0FBQyxZQUFvQixFQUFFLElBQWE7UUFDc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G9uc2UgJiB7XG4gIHN1Y2Nlc3M6IHN0cmluZztcbn07XG4iXX0=

@@ -11,6 +11,10 @@ "use strict";

const url = `file:///${path_1.default.resolve(__dirname, 'form-page.html')}`;
if (process.env.CI) {
// eslint-disable-next-line no-console
console.log('Running on CI');
}
const browser = await puppeteer_1.default.launch({
headless: true,
// Settings for https://github.com/marketplace/actions/puppeteer-container CD
executablePath: 'google-chrome-stable',
// Github CD requires this to be set - https://github.com/marketplace/actions/puppeteer-container
executablePath: process.env.CI ? 'google-chrome-stable' : undefined,
args: ['--no-sandbox'],

@@ -47,2 +51,2 @@ }); // Set to false to see what is going on

exports.default = getTestSpreedlyToken;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdHMvZ2V0U3ByZWVkbHlUb2tlbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDZEQUE2RDtBQUM3RCwwREFBa0M7QUFDbEMsZ0RBQXdCO0FBRVQsS0FBSyxVQUFVLG9CQUFvQjtJQUNoRCxNQUFNLEdBQUcsR0FBRyxXQUFXLGNBQUksQ0FBQyxPQUFPLENBQUMsU0FBUyxFQUFFLGdCQUFnQixDQUFDLEVBQUUsQ0FBQztJQUVuRSxNQUFNLE9BQU8sR0FBRyxNQUFNLG1CQUFTLENBQUMsTUFBTSxDQUFDO1FBQ3JDLFFBQVEsRUFBRSxJQUFJO1FBQ2QsNkVBQTZFO1FBQzdFLGNBQWMsRUFBRSxzQkFBc0I7UUFDdEMsSUFBSSxFQUFFLENBQUMsY0FBYyxDQUFDO0tBQ3ZCLENBQUMsQ0FBQyxDQUFDLHVDQUF1QztJQUMzQyxNQUFNLEtBQUssR0FBRyxNQUFNLE9BQU8sQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUNwQyxNQUFNLEtBQUssQ0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XlzLnB1c2goa2V5KTtcblxuICAgICAgLy8gUmVzb2x2ZSB3aGVuIHggYXJlIHJlY292ZXJlZFxuICAgICAgaWYgKGNvdW50ID49IDIwKSB7XG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgYnJvd3Nlci5jbG9zZSgpOyAvLyBJbiB0cnktY2F0Y2ggaW4gY2FzZSBpdCBpcyBhbHJlYWR5IGNsb3NlZFxuICAgICAgICAgIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby1lbXB0eVxuICAgICAgICB9IGNhdGNoIChlKSB7fVxuICAgICAgICByZXNvbHZlKGtleXMpO1xuICAgICAgfVxuICAgIH0pO1xuICB9KTtcbn1cbiJdfQ==

@@ -18,6 +18,5 @@ "use strict";

*/
jest.setTimeout(20000);
const username = process.env.TRUST_MY_TRAVEL_STAGING_USERNAME;
const password = process.env.TRUST_MY_TRAVEL_STAGING_PASSWORD;
// eslint-disable-next-line no-console
console.log({ username, password });
const clientConfig = {

@@ -30,2 +29,3 @@ username,

const testPayment = {
// Exclude all optional settings (these are tested later)
firstname: 'Donald',

@@ -35,4 +35,2 @@ surname: 'Trump',

address: '1 White House',
city: 'Washington',
state: 'Washington',
country: 'US',

@@ -44,3 +42,2 @@ postcode: 'US1',

total: 1000.0,
line_items: 'bk_123',
payment_method_token: 'TO_REPLACE',

@@ -61,4 +58,5 @@ };

tokens = (await getSpreedlyToken_1.default());
// eslint-disable-next-line no-console
console.log('Tokens created:', tokens.length > 1);
});
jest.setTimeout(10000);
/**

@@ -105,2 +103,15 @@ * Tests

});
test('Without affiliate + optional fields', async () => {
const testPaymentWithOptionalFields = {
...testPayment,
address2: 'A road',
city: 'Washington',
state: 'Washington',
line_items: 'bk_123',
payment_method_token: tokens.pop(),
};
const client = new __1.default(clientConfig);
const result = await client.takePayment(testPaymentWithOptionalFields);
expect(result.success).toBe(true);
});
test('With affiliate', async () => {

@@ -156,2 +167,2 @@ const client = new __1.default(clientConfig);

});
//# sourceMappingURL=data:application/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B0aHJvdyBFcnJvcigpO1xuXG4gICAgY29uc3QgYWZmaWxpYXRlUGF5bWVudCA9IHBheW1lbnRcbiAgICAgIC5hZmZpbGlhdGVfcGF5bWVudHNbMF0gYXMgUGF5bWVudEFmZmlsaWF0ZVJlc3BvbnNlO1xuICAgIGNvbnN0IHJlZnVuZDogUmVmdW5kUGFyYW1ldGVycyA9IHtcbiAgICAgIGJvb2tpbmdfaWQ6IHBheW1lbnQuYm9va2luZ19pZCxcbiAgICAgIGN1cnJlbmN5OiB0ZXN0UGF5bWVudC5jdXJyZW5jeSxcbiAgICAgIGFtb3VudDogdGVzdFBheW1lbnQudG90YWwsXG4gICAgICBhZmZpbGlhdGVfcGF5bWVudHM6IFtcbiAgICAgICAge1xuICAgICAgICAgIGJvb2tpbmdfaWQ6IGFmZmlsaWF0ZVBheW1lbnQuYm9va2luZ19pZCxcbiAgICAgICAgICBjdXJyZW5jeTogYWZmaWxpYXRlUGF5bWVudC5jdXJyZW5jeSxcbiAgICAgICAgICBhbW91bnQ6IGFmZmlsaWF0ZVBheW1lbnQudG90YWwsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH07XG4gICAgY29uc3QgcmVzdWx0ID0gYXdhaXQgY2xpZW50LnJlZnVuZChyZWZ1bmQpO1xuICAgIGV4cGVjdChyZXN1bHQuc3VjY2VzcykudG9CZSh0cnVlKTtcbiAgfSk7XG59KTtcbiJdfQ==
{
"name": "trust-my-travel-legacy",
"license": "MIT",
"version": "1.2.0",
"version": "1.3.0",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "scripts": {

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