jscrambler
Advanced tools
Comparing version 5.5.12 to 5.5.13
@@ -223,3 +223,4 @@ #!/usr/bin/env node | ||
skipSources = _config2.skipSources, | ||
inputSymbolTable = _config2.inputSymbolTable; | ||
inputSymbolTable = _config2.inputSymbolTable, | ||
entryPoint = _config2.entryPoint; | ||
@@ -397,3 +398,4 @@ | ||
removeProfilingData: removeProfilingData, | ||
inputSymbolTable: inputSymbolTable | ||
inputSymbolTable: inputSymbolTable, | ||
entryPoint: entryPoint | ||
}); | ||
@@ -400,0 +402,0 @@ _context3.prev = 1; |
@@ -29,5 +29,5 @@ 'use strict'; | ||
['tolerateMinification', 'useProfilingData', 'useAppClassification', 'inputSymbolTable'].forEach(fieldCleanUp); | ||
['tolerateMinification', 'useProfilingData', 'useAppClassification', 'inputSymbolTable', 'entryPoint'].forEach(fieldCleanUp); | ||
return [options, cleanedUpFragments]; | ||
} |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.intoObjectType = exports.mutation = exports.type = undefined; | ||
exports.intoObjectType = exports.query = exports.mutation = exports.type = undefined; | ||
@@ -93,25 +93,55 @@ var type = exports.type = function () { | ||
var query = exports.query = function () { | ||
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(client, name) { | ||
var rootQuery, queryType; | ||
return regeneratorRuntime.wrap(function _callee3$(_context3) { | ||
while (1) { | ||
switch (_context3.prev = _context3.next) { | ||
case 0: | ||
_context3.next = 2; | ||
return type(client, 'RootQuery'); | ||
case 2: | ||
rootQuery = _context3.sent; | ||
queryType = rootQuery.fields.find(function (f) { | ||
return f.name === name; | ||
}); | ||
return _context3.abrupt('return', queryType); | ||
case 5: | ||
case 'end': | ||
return _context3.stop(); | ||
} | ||
} | ||
}, _callee3, this); | ||
})); | ||
return function query(_x5, _x6) { | ||
return _ref3.apply(this, arguments); | ||
}; | ||
}(); | ||
var intoObjectType = exports.intoObjectType = function () { | ||
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(client, obj, name) { | ||
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(client, obj, name) { | ||
var _this = this; | ||
var fields, finalObj, keys; | ||
return regeneratorRuntime.wrap(function _callee4$(_context4) { | ||
return regeneratorRuntime.wrap(function _callee5$(_context5) { | ||
while (1) { | ||
switch (_context4.prev = _context4.next) { | ||
switch (_context5.prev = _context5.next) { | ||
case 0: | ||
_context4.next = 2; | ||
_context5.next = 2; | ||
return type(client, name); | ||
case 2: | ||
fields = _context4.sent.fields; | ||
fields = _context5.sent.fields; | ||
finalObj = {}; | ||
keys = Object.keys(obj); | ||
_context4.next = 7; | ||
_context5.next = 7; | ||
return Promise.all(keys.map(function () { | ||
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(k) { | ||
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(k) { | ||
var field; | ||
return regeneratorRuntime.wrap(function _callee3$(_context3) { | ||
return regeneratorRuntime.wrap(function _callee4$(_context4) { | ||
while (1) { | ||
switch (_context3.prev = _context3.next) { | ||
switch (_context4.prev = _context4.next) { | ||
case 0: | ||
@@ -123,3 +153,3 @@ field = fields.find(function (f) { | ||
if (!(field && field.type)) { | ||
_context3.next = 14; | ||
_context4.next = 14; | ||
break; | ||
@@ -131,25 +161,25 @@ } | ||
if (!(field.type.kind === 'OBJECT' && !!field.type.name)) { | ||
_context3.next = 8; | ||
_context4.next = 8; | ||
break; | ||
} | ||
_context3.next = 6; | ||
_context4.next = 6; | ||
return intoObjectType(client, finalObj[k], field.type.name); | ||
case 6: | ||
finalObj[k] = _context3.sent; | ||
return _context3.abrupt('return'); | ||
finalObj[k] = _context4.sent; | ||
return _context4.abrupt('return'); | ||
case 8: | ||
if (!((field.type.kind === 'NON_NULL' || field.type.kind === 'LIST') && field.type.ofType.kind === 'OBJECT')) { | ||
_context3.next = 13; | ||
_context4.next = 13; | ||
break; | ||
} | ||
_context3.next = 11; | ||
_context4.next = 11; | ||
return intoObjectType(client, finalObj[k], field.type.ofType.name); | ||
case 11: | ||
finalObj[k] = _context3.sent; | ||
return _context3.abrupt('return'); | ||
finalObj[k] = _context4.sent; | ||
return _context4.abrupt('return'); | ||
@@ -164,10 +194,10 @@ case 13: | ||
case 'end': | ||
return _context3.stop(); | ||
return _context4.stop(); | ||
} | ||
} | ||
}, _callee3, _this); | ||
}, _callee4, _this); | ||
})); | ||
return function (_x8) { | ||
return _ref4.apply(this, arguments); | ||
return function (_x10) { | ||
return _ref5.apply(this, arguments); | ||
}; | ||
@@ -177,14 +207,14 @@ }())); | ||
case 7: | ||
return _context4.abrupt('return', finalObj); | ||
return _context5.abrupt('return', finalObj); | ||
case 8: | ||
case 'end': | ||
return _context4.stop(); | ||
return _context5.stop(); | ||
} | ||
} | ||
}, _callee4, this); | ||
}, _callee5, this); | ||
})); | ||
return function intoObjectType(_x5, _x6, _x7) { | ||
return _ref3.apply(this, arguments); | ||
return function intoObjectType(_x7, _x8, _x9) { | ||
return _ref4.apply(this, arguments); | ||
}; | ||
@@ -191,0 +221,0 @@ }(); |
{ | ||
"name": "jscrambler", | ||
"description": "Jscrambler API client.", | ||
"version": "5.5.12", | ||
"version": "5.5.13", | ||
"homepage": "https://github.com/jscrambler/jscrambler", | ||
@@ -6,0 +6,0 @@ "author": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
159951
3361
2