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

g8-js-sdk

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g8-js-sdk - npm Package Compare versions

Comparing version 1.9.1 to 1.10.0

13

dist/classes/common/common.js

@@ -27,10 +27,2 @@ 'use strict';

/**
* @description Returns default stimmy object.
* @returns {*}
*/
static replacer() {
return (0, _stimmy2.default)();
}
/**
* @description Runs GET request.

@@ -133,3 +125,4 @@ * @param url

static formatUrl(url, values) {
const urlTmp = Common.replacer(url, values);
const replacer = (0, _stimmy2.default)();
const urlTmp = replacer(url, values);
if (urlTmp.includes('{') || urlTmp.includes('}')) {

@@ -143,2 +136,2 @@ return Promise.reject({ error: { name: 'Oups...', message: `Url parameter missing: ${urlTmp}` } });

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jbGFzc2VzL2NvbW1vbi9jb21tb24uanMiXSwibmFtZXMiOlsiQ29tbW9uIiwiY29uc3RydWN0b3IiLCJjb25maWd1cmF0aW9uIiwicmVwbGFjZXIiLCJnZXRSZXF1ZXN0IiwidXJsIiwiYm9keSIsImhlYWRlcnMiLCJheGlvcyIsImdldCIsImhvc3QiLCJnZXRIZWFkZXJzIiwidGhlbiIsImRhdGEiLCJQcm9taXNlIiwicmVzb2x2ZSIsInBvc3RSZXF1ZXN0IiwicG9zdCIsInB1dFJlcXVlc3QiLCJwdXQiLCJkZWxldGVSZXF1ZXN0IiwiZGVsZXRlIiwicmV0cnkiLCJjb25maWciLCJyZXMiLCJjYXRjaCIsImUiLCJyZWplY3QiLCJyZWZyZXNoVG9rZW4iLCJjYWxsYmFjayIsImludGVyY2VwdG9ycyIsInJlc3BvbnNlIiwidXNlIiwiZXJyb3IiLCJFcnJvcnMiLCJnZXRNZXNz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B7XG4gICAgY29uc3QgcmVwbGFjZXIgPSBzdGltbXkoKTtcbiAgICBjb25zdCB1cmxUbXAgPSByZXBsYWNlcih1cmwsIHZhbHVlcyk7XG4gICAgaWYgKHVybFRtcC5pbmNsdWRlcygneycpIHx8IHVybFRtcC5pbmNsdWRlcygnfScpKSB7XG4gICAgICByZXR1cm4gUHJvbWlzZS5yZWplY3Qoe2Vycm9yOiB7bmFtZTogJ091cHMuLi4nLCBtZXNzYWdlOiBgVXJsIHBhcmFtZXRlciBtaXNzaW5nOiAke3VybFRtcH1gfX0pO1xuICAgIH1cbiAgICByZXR1cm4gdXJsVG1wO1xuICB9XG59XG4iXX0=
{
"name": "g8-js-sdk",
"version": "1.9.1",
"version": "1.10.0",
"description": "Ambulance G8 Javascript SDK",

@@ -27,3 +27,3 @@ "license": "MIT",

"dependencies": {
"@rimiti/stimmy": "^1.4.1",
"@rimiti/stimmy": "^1.6.0",
"axios": "^0.18.0",

@@ -30,0 +30,0 @@ "json-override": "^0.2.0"

@@ -11,10 +11,2 @@ import stimmy from '@rimiti/stimmy';

/**
* @description Returns default stimmy object.
* @returns {*}
*/
static replacer() {
return stimmy();
}
/**
* @description Runs GET request.

@@ -125,3 +117,4 @@ * @param url

static formatUrl(url, values) {
const urlTmp = Common.replacer(url, values);
const replacer = stimmy();
const urlTmp = replacer(url, values);
if (urlTmp.includes('{') || urlTmp.includes('}')) {

@@ -128,0 +121,0 @@ return Promise.reject({error: {name: 'Oups...', message: `Url parameter missing: ${urlTmp}`}});

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