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

itslanguage

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itslanguage - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

11

administrative-sdk/category/category-controller.js

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

*
* @param {string} [groupId] - The ID of the group for which to fetch the categories.
* @returns {Promise.<Category[]>} Promise containing an array of Categories.

@@ -93,4 +94,8 @@ * @throws {Promise.<Error>} If no result could not be found.

CategoryController.prototype.getTopLevelCategories = function getTopLevelCategories() {
return this.getCategories();
CategoryController.prototype.getTopLevelCategories = function getTopLevelCategories(groupId) {
var urlMod = void 0;
if (groupId) {
urlMod = '?group=' + groupId;
}
return this.getCategories(urlMod);
};

@@ -138,2 +143,2 @@

exports.default = CategoryController;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hZG1pbmlzdHJhdGl2ZS1zZGsvY2F0ZWdvcnkvY2F0ZWdvcnktY29udHJvbGxlci5qcyJdLCJuYW1lcyI6WyJDYXRlZ29yeUNvbnRyb2xsZXIiLCJjb25uZWN0aW9uIiwiX2Nvbm5lY3Rpb24iLCJjcmVhdGVDYXRlZ29yeSIsImNhdGVnb3J5IiwiUHJvbWlzZSIsInJlamVjdCIsIkVycm9yIiwidXJsIiwiX3NldHRpbmdzIiwiYXBpVXJsIiwiZmQiLCJKU09OIiwic3RyaW5naWZ5IiwiX3NlY3VyZUFqYXhQb3N0IiwidGhlbiIsInJlc3VsdCIsImRhdGEiLCJpZCIsInBhcmVudCIsIm5hbWUiLCJkZXNjcmlwdGlvbiIsImNvbG9yIiwic3BlZWNoQ2hhbGxlbmdlcyIsImltYWdlVXJsIiwiaWNvblVybCIsImNyZWF0ZWQiLCJEYXRlIiwidXBkYXRlZCIsImdldEN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V0dXJuIHRoaXMuZ2V0Q2F0ZWdvcmllcygnLycgKyBwYXJlbnRJZCArICcvY2F0ZWdvcmllcycpO1xuICB9XG5cbiAgZ2V0Q2F0ZWdvcmllcyh1cmxNb2RpZmljYXRpb24gPSBudWxsKSB7XG4gICAgbGV0IHVybCA9IHRoaXMuX2Nvbm5lY3Rpb24uX3NldHRpbmdzLmFwaVVybCArICcvY2F0ZWdvcmllcyc7XG4gICAgaWYgKHVybE1vZGlmaWNhdGlvbiAhPT0gbnVsbCkge1xuICAgICAgdXJsICs9IHVybE1vZGlmaWNhdGlvbjtcbiAgICB9XG4gICAgcmV0dXJuIHRoaXMuX2Nvbm5lY3Rpb24uX3NlY3VyZUFqYXhHZXQodXJsKVxuICAgICAgLnRoZW4oZGF0YSA9PiBkYXRhLm1hcChkYXR1bSA9PiB7XG4gICAgICAgIGNvbnN0IGNhdGVnb3J5ID0gbmV3IENhdGVnb3J5KGRhdHVtLmlkLCBkYXR1bS5wYXJlbnQsIGRhdHVtLm5hbWUsIGRhdHVtLmRlc2NyaXB0aW9uLCBkYXR1bS5jb2xvcixcbiAgICAgICAgICBkYXR1bS5zcGVlY2hDaGFsbGVuZ2VzKTtcbiAgICAgICAgY2F0ZWdvcnkuaW1hZ2VVcmwgPSBkYXR1bS5pbWFnZVVybDtcbiAgICAgICAgY2F0ZWdvcnkuaWNvblVybCA9IGRhdHVtLmljb25Vcmw7XG4gICAgICAgIGNhdGVnb3J5LmNyZWF0ZWQgPSBuZXcgRGF0ZShkYXR1bS5jcmVhdGVkKTtcbiAgICAgICAgY2F0ZWdvcnkudXBkYXRlZCA9IG5ldyBEYXRlKGRhdHVtLnVwZGF0ZWQpO1xuICAgICAgICByZXR1cm4gY2F0ZWdvcnk7XG4gICAgICB9KSk7XG4gIH1cbn1cbiJdfQ==

@@ -48,3 +48,3 @@ 'use strict';

return this._connection._secureAjaxPost(url, fd).then(function (data) {
var result = new _user2.default(data.id, data.profile, data.groups, data.roles);
var result = new _user2.default(data.id, data.roles, data.profile, data.groups);
result.created = new Date(data.created);

@@ -72,3 +72,3 @@ result.updated = new Date(data.updated);

return this._connection._secureAjaxGet(url).then(function (data) {
var user = new _user2.default(data.id, data.profile, data.groups, data.roles);
var user = new _user2.default(data.id, data.roles, data.profile, data.groups);
user.created = new Date(data.created);

@@ -92,3 +92,3 @@ user.updated = new Date(data.updated);

return data.map(function (datum) {
var user = new _user2.default(datum.id, datum.profile, datum.groups, datum.roles);
var user = new _user2.default(datum.id, datum.roles, datum.profile, datum.groups);
user.created = new Date(datum.created);

@@ -112,3 +112,3 @@ user.updated = new Date(datum.updated);

return this._connection._secureAjaxGet(url).then(function (data) {
var user = new _user2.default(data.id, data.profile, data.groups, data.roles);
var user = new _user2.default(data.id, data.roles, data.profile, data.groups);
user.created = new Date(data.created);

@@ -124,2 +124,2 @@ user.updated = new Date(data.updated);

exports.default = UserController;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hZG1pbmlzdHJhdGl2ZS1zZGsvdXNlci91c2VyLWNvbnRyb2xsZXIuanMiXSwibmFtZXMiOlsiVXNlckNvbnRyb2xsZXIiLCJjb25uZWN0aW9uIiwiX2Nvbm5lY3Rpb24iLCJjcmVhdGVVc2VyIiwidXNlciIsIlByb21pc2UiLCJyZWplY3QiLCJFcnJvciIsInVybCIsIl9zZXR0aW5ncyIsImFwaVVybCIsImZkIiwiSlNPTiIsInN0cmluZ2lmeSIsIl9zZWN1cmVBamF4UG9zdCIsInRoZW4iLCJyZXN1bHQiLCJkYXRhIiwiaWQiLCJwcm9maWxlIiwiZ3JvdXBzIiwicm9sZXMiLCJjcmVhdGVkIiwiRGF0ZSIsInVwZGF0ZWQiLCJnZXRVc2VyIiwidXNlcklkIiwiX3NlY3VyZUFqYXhHZXQiLCJnZXRVc2VycyIsIm1hcCIsImRhdHVtIiwiZ2V0Q3VycmVudFVzZXIiXSwibWFwcGluZ3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gLyoqXG4gICAqIEdldCB0aGUgY3VycmVudCBhdXRoZW50aWNhdGVkIHVzZXIuXG4gICAqXG4gICAqIEByZXR1cm5zIHtQcm9taXNlLjxVc2VyPn0gVGhlIGN1cnJlbnQgYXV0aGVudGljYXRlZCB1c2VyLlxuICAgKiBAdGhyb3dzIHtQcm9taXNlLjxFcnJvcj59IElmIHNvbWV0aGluZyB3ZW50IHdyb25nIGluIHRoZSBzZXJ2ZXIuXG4gICAqL1xuICBnZXRDdXJyZW50VXNlcigpIHtcbiAgICBjb25zdCB1cmwgPSB0aGlzLl9jb25uZWN0aW9uLl9zZXR0aW5ncy5hcGlVcmwgKyAnL3VzZXInO1xuICAgIHJldHVybiB0aGlzLl9jb25uZWN0aW9uLl9zZWN1cmVBamF4R2V0KHVybClcbiAgICAgIC50aGVuKGRhdGEgPT4ge1xuICAgICAgICBjb25zdCB1c2VyID0gbmV3IFVzZXIoZGF0YS5pZCwgZGF0YS5yb2xlcywgZGF0YS5wcm9maWxlLCBkYXRhLmdyb3Vwcyk7XG4gICAgICAgIHVzZXIuY3JlYXRlZCA9IG5ldyBEYXRlKGRhdGEuY3JlYXRlZCk7XG4gICAgICAgIHVzZXIudXBkYXRlZCA9IG5ldyBEYXRlKGRhdGEudXBkYXRlZCk7XG4gICAgICAgIHJldHVybiB1c2VyO1xuICAgICAgfSk7XG4gIH1cbn1cbiJdfQ==

@@ -21,5 +21,5 @@ 'use strict';

* @param {?string} id - The user identifier. If none is given, one is generated.
* @param {Array<.string>} roles - Names of the {@link Role}s this user can take on.
* @param {?Profile} profile - Profile of the User.
* @param {?Array.<Group>} groups - Groups this User is part of.
* @param {Array<.string>} roles - Names of the {@link Role}s this user can take on.
* @throws {Error} id parameter of type "string|null" is required.

@@ -30,3 +30,6 @@ * @throws {Error} profile parameter of type "Profile|null" is required.

*/
function User(id, profile, groups, roles) {
function User(id, roles) {
var profile = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
var groups = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
_classCallCheck(this, User);

@@ -38,2 +41,6 @@

if (!Array.isArray(roles) || roles.length === 0) {
throw new Error('non-empty roles parameter of type "Array.<string>" is required');
}
if (profile !== null && !(profile instanceof _profile2.default)) {

@@ -47,6 +54,2 @@ throw new Error('profile parameter of type "Profile|null" is required');

if (!Array.isArray(roles) || roles.length === 0) {
throw new Error('non-empty roles parameter of type "Array.<string>" is required');
}
/**

@@ -59,2 +62,8 @@ * The user identifier. If none is given, one is generated.

/**
* Names of the {@link Role}s this user can take on.
* @type {Array.<.Role>}
*/
this.roles = roles;
/**
* Profile of the User.

@@ -72,8 +81,2 @@ * @type {Profile}

/**
* Names of the {@link Role}s this user can take on.
* @type {Array.<.Role>}
*/
this.roles = roles;
/**
* The creation date of the entity.

@@ -92,2 +95,2 @@ * @type {Date}

exports.default = User;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hZG1pbmlzdHJhdGl2ZS1zZGsvdXNlci91c2VyLmpzIl0sIm5hbWVzIjpbIlVzZXIiLCJpZCIsInByb2ZpbGUiLCJncm91cHMiLCJyb2xlcyIsIkVycm9yIiwiQXJyYXkiLCJpc0FycmF5IiwibGVuZ3RoIiwiY3JlYXRlZCIsInVwZGF0ZWQiXSwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7Ozs7Ozs7QUFFQTs7O0lBR3FCQSxJO0FBQ25COzs7Ozs7Ozs7Ozs7QUFZQSxjQUFZQyxFQUFaLEVBQWdCQyxPQUFoQixFQUF5QkMsTUFBekIsRUFBaUNDLEtBQWpDLEVBQXdDO0FBQUE7O0FBQ3RDLE1BQUlILE9BQU8sSUFBUCxJQUFlLE9BQU9BLEVBQVAsS0FBYyxRQUFqQyxFQUEyQztBQUN6QyxVQUFNLElBQUlJLEtBQUosQ0FBVSxnREFBVixDQUFOO0FBQ0Q7O0FBRUQsTUFBSUgsWUFBWSxJQU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dGhpcy5ncm91cHMgPSBncm91cHM7XG5cbiAgICAvKipcbiAgICAgKiBUaGUgY3JlYXRpb24gZGF0ZSBvZiB0aGUgZW50aXR5LlxuICAgICAqIEB0eXBlIHtEYXRlfVxuICAgICAqL1xuICAgIHRoaXMuY3JlYXRlZCA9IG51bGw7XG5cbiAgICAvKipcbiAgICAgKiBUaGUgbW9zdCByZWNlbnQgdXBkYXRlIGRhdGUgb2YgdGhlIGVudGl0eS5cbiAgICAgKiBAdHlwZSB7RGF0ZX1cbiAgICAgKi9cbiAgICB0aGlzLnVwZGF0ZWQgPSBudWxsO1xuICB9XG59XG4iXX0=
{
"name": "itslanguage",
"version": "2.3.0",
"version": "2.4.0",
"description": "The core JavaScript SDK for ITSLanguage.",

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

Sorry, the diff of this file is too big to display

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