jscrambler
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -17,11 +17,18 @@ 'use strict'; | ||
var getApplicationDefaultFragments = '\n _id,\n name,\n createdAt,\n sources {\n _id,\n filename,\n extension\n }\n'; | ||
/** | ||
* Return one application by id. | ||
* The options params argument can be used to filter protections by version and limit the number of protections returned. | ||
* @param {String} id the application id | ||
* @param {fragment} fragments GraphQL fragment | ||
* @param {Array} params {{String}protectionsVersion, {Integer} protectionsNumber} | ||
*/ | ||
function getApplication(applicationId) { | ||
var fragments = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getApplicationDefaultFragments; | ||
var params = arguments[2]; | ||
return { | ||
query: '\n query getApplication ($applicationId: String!) {\n application(_id: $applicationId) {\n ' + fragments + '\n }\n }\n ', | ||
params: JSON.stringify({ | ||
query: '\n query getApplication ($applicationId: String!, $protectionsVersion: String, $protectionsLimit: Int) {\n application(_id: $applicationId, protectionsVersion: $protectionsVersion, protectionsLimit: $protectionsLimit) {\n ' + fragments + '\n }\n }\n ', | ||
params: JSON.stringify(_extends({ | ||
applicationId: applicationId | ||
}) | ||
}, params)) | ||
}; | ||
@@ -82,9 +89,15 @@ } | ||
var getApplicationsDefaultFragments = '\n _id,\n name,\n protections,\n parameters\n'; | ||
/** | ||
* Return all applications. | ||
* The options params argument can be used to filter protections by version and limit the number of protections returned. | ||
* @param {fragment} fragments GraphQL fragment | ||
* @param {Array} params {{String}protectionsVersion, {Integer} protectionsNumber} | ||
*/ | ||
function getApplications() { | ||
var fragments = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getApplicationsDefaultFragments; | ||
var params = arguments[1]; | ||
return { | ||
query: '\n query getApplications {\n applications {\n ' + fragments + '\n }\n }\n ', | ||
params: '{}' | ||
query: '\n query getApplications($protectionsVersion:String, $protectionsLimit: Int) {\n applications(protectionsVersion: $protectionsVersion, protectionsLimit: $protectionsLimit) {\n ' + fragments + '\n }\n }\n ', | ||
params: JSON.stringify(_extends({}, params)) | ||
}; | ||
@@ -95,3 +108,3 @@ } | ||
application: '\n name\n ', | ||
applicationProtection: '\n _id,\n state,\n bail,\n deprecations,\n sources {\n filename,\n errorMessages {\n message,\n line,\n column,\n fatal\n }\n }\n ' | ||
applicationProtection: '\n _id,\n state,\n bail,\n deprecations {\n type,\n entity\n },\n errorMessage,\n sources {\n filename,\n errorMessages {\n message,\n line,\n column,\n fatal\n }\n }\n ' | ||
}; | ||
@@ -110,2 +123,2 @@ | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvcXVlcmllcy5qcyJdLCJuYW1lcyI6WyJnZXRBcHBsaWNhdGlvbiIsImdldEFwcGxpY2F0aW9uU291cmNlIiwiZ2V0QXBwbGljYXRpb25Qcm90ZWN0aW9ucyIsImdldEFwcGxpY2F0aW9uUHJvdGVjdGlvbnNDb3VudCIsImdldFRlbXBsYXRlcyIsImdldEFwcGxpY2F0aW9ucyIsImdldFByb3RlY3Rpb24iLCJnZXRBcHBsaWNhdGlvbkRlZmF1bHRGcmFnbWVudHMiLCJhcHBsaWNhdGlvbklkIiwiZnJhZ21lbnRzIiwicXVlcnkiLCJwYXJhbXMiLCJKU09OIiwic3RyaW5naWZ5IiwiZ2V0QXBwbGljYXRpb25Tb3VyY2VEZWZhdWx0RnJhZ21lbnRzIiwic291cmNlSWQiLCJsaW1pdHMiLCJnZXRBcHBsaWNhdGlvblByb3RlY3Rpb25zRGVmYXVsdEZyYWdtZW50cyIsImdldEFwcGxpY2F0aW9uUHJvdGVjdGlvbnNDb3VudERlZmF1bHRGcmFnbWVudHMiLCJnZXRUZW1wbGF0ZXNEZWZhdWx0RnJhZ21lbnRzIiwiZ2V0QXBwbGljYXRpb25zRGVmYXVsdEZyYWdtZW50cyIsImdldFByb3RlY3Rpb25EZWZhdWx0RnJhZ21lbnRzIiwiYXBwbGljYXRpb24iLCJhcHBsaWNhdGlvblByb3RlY3Rpb24iLCJw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GVycm9yTWVzc2FnZSxcbiAgICBzb3VyY2VzIHtcbiAgICAgIGZpbGVuYW1lLFxuICAgICAgZXJyb3JNZXNzYWdlcyB7XG4gICAgICAgIG1lc3NhZ2UsXG4gICAgICAgIGxpbmUsXG4gICAgICAgIGNvbHVtbixcbiAgICAgICAgZmF0YWxcbiAgICAgIH1cbiAgICB9XG4gIGBcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBnZXRQcm90ZWN0aW9uIChhcHBsaWNhdGlvbklkLCBwcm90ZWN0aW9uSWQsIGZyYWdtZW50cyA9IGdldFByb3RlY3Rpb25EZWZhdWx0RnJhZ21lbnRzKSB7XG4gIHJldHVybiB7XG4gICAgcXVlcnk6IGBcbiAgICAgIHF1ZXJ5IGdldFByb3RlY3Rpb24gKCRhcHBsaWNhdGlvbklkOiBTdHJpbmchLCAkcHJvdGVjdGlvbklkOiBTdHJpbmchKSB7XG4gICAgICAgIGFwcGxpY2F0aW9uIChfaWQ6ICRhcHBsaWNhdGlvbklkKSB7XG4gICAgICAgICAgJHtmcmFnbWVudHMuYXBwbGljYXRpb259XG4gICAgICAgIH1cbiAgICAgICAgYXBwbGljYXRpb25Qcm90ZWN0aW9uIChfaWQ6ICRwcm90ZWN0aW9uSWQpIHtcbiAgICAgICAgICAke2ZyYWdtZW50cy5hcHBsaWNhdGlvblByb3RlY3Rpb259XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICBgLFxuICAgIHBhcmFtczogSlNPTi5zdHJpbmdpZnkoe1xuICAgICAgYXBwbGljYXRpb25JZCxcbiAgICAgIHByb3RlY3Rpb25JZFxuICAgIH0pXG4gIH07XG59XG4iXX0= |
{ | ||
"name": "jscrambler", | ||
"description": "Jscrambler API client.", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"homepage": "https://github.com/jscrambler/javascript-jscrambler", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -53,3 +53,4 @@ # ![jscrambler](https://rawgithub.com/jscrambler/javascript-jscrambler/master/media/jscrambler-logo.png) | ||
], | ||
"areSubscribersOrdered": false | ||
"areSubscribersOrdered": false, | ||
"jscramblerVersion": "5.1" | ||
} | ||
@@ -89,2 +90,3 @@ ``` | ||
-W --werror Cancel protection if any file contains errors | ||
--jscramblerVersion <version> Use a specific Jscrambler version | ||
``` | ||
@@ -91,0 +93,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
322478
5105
221