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.1.0 to 1.2.0

dist/classes/resources/users/id/index.js

3

dist/index.js

@@ -24,2 +24,3 @@ 'use strict';

users: '/users',
usersId: '/users/{userId}',
usersOrders: '/users/{userId}/orders',

@@ -39,2 +40,2 @@ usersOrdersId: '/users/{userId}/orders/{orderId}',

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjb25maWd1cmF0aW9uIiwiYXV0aGVudGljYXRpb24iLCJob3N0Iiwicm91dGVzIiwibG9naW5zIiwicGFzc3dvcmRzIiwidXNlcnMiLCJ1c2Vyc09yZGVycyIsInVzZXJzT3JkZXJzSWQiLCJ1c2Vyc09yZGVyc1Byb2R1Y3RzIiwidXNlcnNEZXZpY2VzUG9zaXRpb25zIiwiY29uZmlndXJlIiwiY29uZmlnIiwiY3JlYXRlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztBQUNBOzs7Ozs7QUFFQSxJQUFJQSxnQkFBZ0I7QUFDbEJDLGtCQUFnQixFQURFO0FBRWxCQyxRQUFNLDhCQUZZO0FBR2xCQyxVQUFRO0FBQ05DLFlBQVEsU0FERjtBQUVOQyxlQUFXLFlBRkw7QUFHTkMsV0FBTyxRQUhEO0FBSU5DLGlCQUFhLHdCQUpQO0FBS05DLG1CQUFlLGtDQUxUO0FBTU5DLHlCQUFxQiwyQ0FOZjtBQU9OQywyQkFBdUI7QUFQakI7QUFIVSxDQUFwQjs7a0JBY2U7QUFDYkMsYUFBWUMsTUFBRCxJQUFZO0FBQ3JCWixvQkFBZ0IsNEJBQ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8vYXBpLmFtYnVsYW5jZS1nOC5jb20nLFxuICByb3V0ZXM6IHtcbiAgICBsb2dpbnM6ICcvbG9naW5zJyxcbiAgICBwYXNzd29yZHM6ICcvcGFzc3dvcmRzJyxcbiAgICB1c2VyczogJy91c2VycycsXG4gICAgdXNlcnNJZDogJy91c2Vycy97dXNlcklkfScsXG4gICAgdXNlcnNPcmRlcnM6ICcvdXNlcnMve3VzZXJJZH0vb3JkZXJzJyxcbiAgICB1c2Vyc09yZGVyc0lkOiAnL3VzZXJzL3t1c2VySWR9L29yZGVycy97b3JkZXJJZH0nLFxuICAgIHVzZXJzT3JkZXJzUHJvZHVjdHM6ICcvdXNlcnMve3VzZXJJZH0vb3JkZXJzL3tvcmRlcklkfS9wcm9kdWN0cycsXG4gICAgdXNlcnNEZXZpY2VzUG9zaXRpb25zOiAnL3VzZXJzL3t1c2VySWR9L2RldmljZXMve2RldmljZUlkfS9wb3NpdGlvbnMnLFxuICB9LFxufTtcblxuZXhwb3J0IGRlZmF1bHQge1xuICBjb25maWd1cmU6IChjb25maWcpID0+IHtcbiAgICBjb25maWd1cmF0aW9uID0ganNvbk92ZXJyaWRlKGNvbmZpZ3VyYXRpb24sIGNvbmZpZyk7XG4gIH0sXG4gIGNyZWF0ZTogKCkgPT4gbmV3IFNESyhjb25maWd1cmF0aW9uKSxcbn07XG4iXX0=

@@ -23,2 +23,6 @@ 'use strict';

var _id = require('./classes/resources/users/id');
var _id2 = _interopRequireDefault(_id);
var _positions = require('./classes/resources/users/devices/positions');

@@ -32,5 +36,5 @@

var _id = require('./classes/resources/users/orders/id');
var _id3 = require('./classes/resources/users/orders/id');
var _id2 = _interopRequireDefault(_id);
var _id4 = _interopRequireDefault(_id3);

@@ -72,2 +76,13 @@ var _products = require('./classes/resources/users/orders/products');

/**
* @description Returns UsersId singleton.
* @return {UsersId}
*/
get UsersId() {
if (!this.usersIdClass) {
this.usersIdClass = new _id2.default(this.configuration);
}
return this.usersIdClass;
}
/**
* @description Returns Passwords singleton.

@@ -111,3 +126,3 @@ * @return {Passwords}

if (!this.usersOrdersIdClass) {
this.usersOrdersIdClass = new _id2.default(this.configuration);
this.usersOrdersIdClass = new _id4.default(this.configuration);
}

@@ -130,2 +145,2 @@ return this.usersOrdersIdClass;

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

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -11,2 +11,3 @@ import jsonOverride from 'json-override';

users: '/users',
usersId: '/users/{userId}',
usersOrders: '/users/{userId}/orders',

@@ -13,0 +14,0 @@ usersOrdersId: '/users/{userId}/orders/{orderId}',

@@ -5,2 +5,3 @@ import Common from './classes/common/common';

import Users from './classes/resources/users';
import UsersId from './classes/resources/users/id';
import UsersDevicesPositions from './classes/resources/users/devices/positions';

@@ -40,2 +41,13 @@ import UsersOrders from './classes/resources/users/orders';

/**
* @description Returns UsersId singleton.
* @return {UsersId}
*/
get UsersId() {
if (!this.usersIdClass) {
this.usersIdClass = new UsersId(this.configuration);
}
return this.usersIdClass;
}
/**
* @description Returns Passwords singleton.

@@ -42,0 +54,0 @@ * @return {Passwords}

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