@haventech/semotus
Advanced tools
Comparing version 5.0.0 to 6.0.0-beta.0
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.remote = exports.property = exports.Supertype = exports.supertypeClass = void 0; | ||
/** | ||
@@ -140,2 +141,2 @@ * @TODO: This should be consolidated with Supertype's version when we finish converting to typescript | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWNvcmF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7O0dBU0c7O0FBR0g7O0dBRUc7QUFFSCx3QkFBd0I7QUFDeEIsMkVBQTJFO0FBQzNFLGdHQUFnRztBQUNoRyxTQUFnQixjQUFjLENBQUMsY0FBYyxFQUFFLGVBQWUsRUFBRSxNQUFNO0lBQ2xFLElBQUksR0FBRyxDQUFDO0lBQ1IsSUFBSSxjQUFjLEdBQUcsZUFBZSxDQUFDLE9BQU8sQ0FBQztJQUM3QyxJQUFJLFVBQVUsR0FBYSxFQUFFLENBQUMsQ0FBRSxvQ0FBb0M7SUFFcEUsc0JBQXNCO0lBQ3RCLElBQU0sU0FBUyxHQUFHLFNBQVMsU0FBUyxDQUFDLE1BQU07UUFDdkMsbUZBQW1GO1FBQ25GLDBCQUEwQjtRQUMxQixJQUFJLEdBQUcsRUFBRTtZQUNMLEdBQUcsR0FBRyxHQUFHLENBQUMsTUFBTSxFQUFFLGNBQWMsQ0FBQyxDQUFBO1NBQ3BDO2FBQU07WUFDSCxHQUFHLEdBQUcsZUFBZSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsY0FBYyxDQUFDLENBQUM7U0FDaEU7UUFFRCxvRUFBb0U7UUFDcEUsTUFBTSxDQUFDLGNBQWMsR0FBRyxVQUFVLFlBQVksRUFBRSx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eS52YWx1ZTtcblxuICAgICAgICAgICAgICAgIC8vIFRoZSBnZXR0ZXIgYWN0dWFsbHkgaW5pdGlhbGl6ZXMgdGhlIHByb3BlcnR5XG4gICAgICAgICAgICAgICAgZGVmaW5lUHJvcGVydHkuZ2V0ID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICBsZXQgbmFtZVNwYWNlZFByb3BlcnR5ID0gYF9fJHtwcm9wZXJ0eU5hbWV9YDtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoIXRoaXNbbmFtZVNwYWNlZFByb3BlcnR5XSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGNsb25lVGVtcGxhdGUgPSBkZWZpbmVQcm9wZXJ0eS5vZiB8fCBkZWZpbmVQcm9wZXJ0eS50eXBlIHx8IG51bGw7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzW25hbWVTcGFjZWRQcm9wZXJ0eV0gPSBPYmplY3RUZW1wbGF0ZS5jbG9uZSh2YWx1ZSwgY2xvbmVUZW1wbGF0ZSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXNbbmFtZVNwYWNlZFByb3BlcnR5XTtcbiAgICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICAgICAgY29uc3QgZGVmaW5lUHJvcGVydGllcyA9IHt9O1xuICAgICAgICAgICAgICAgIG9iamVjdFRlbXBsYXRlLl9zZXR1cFByb3BlcnR5KHByb3BlcnR5TmFtZSwgZGVmaW5lUHJvcGVydHksIHVuZGVmaW5lZCwgZGVmaW5lUHJvcGVydGllcyk7XG4gICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXModGFyZ2V0LnByb3RvdHlwZSwgZGVmaW5lUHJvcGVydGllcyk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG5cbiAgICAgICAgLy8gQXNzaWduaW5nIHN5bmMgc3RhdGVzIGZyb20gcHJvcCB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odGFyZ2V0LCBwcm9wZXJ0eU5hbWUsIGRlc2NyaXB0b3IpIHtcbiAgICAgICAgZGVzY3JpcHRvci52YWx1ZSA9IG9iamVjdFRlbXBsYXRlLl9zZXR1cEZ1bmN0aW9uKFxuICAgICAgICAgICAgcHJvcGVydHlOYW1lLFxuICAgICAgICAgICAgZGVzY3JpcHRvci52YWx1ZSxcbiAgICAgICAgICAgIGRlZmluZVByb3BlcnR5Lm9uLFxuICAgICAgICAgICAgZGVmaW5lUHJvcGVydHkudmFsaWRhdGUsXG4gICAgICAgICAgICByZW1vdGVWYWxpZGF0b3IsXG4gICAgICAgICAgICBpc1B1YmxpYyxcbiAgICAgICAgICAgIGRlZmluZVByb3BlcnR5LnRhcmdldFxuICAgICAgICApO1xuXG4gICAgICAgIC8qXG4gICAgICAgICAgICB0aGlzIGZ1bmN0aW9uIGJlZW4gbWFya2VkIGFzIGEgc2VydmVyIEFQSSBlaXRoZXIgZXhwbGljaXRseSBvciBieSBkZWZhdWx0LlxuICAgICAgICAgICAgc2V0IHRoZSBhcHByb3ByaWF0ZSBtZXRhZGF0YS5cbiAgICAgICAgICovXG4gICAgICAgIGlmIChkZWZpbmVQcm9wZXJ0eS5vbiA9PT0gJ3NlcnZlcicpIHtcbiAgICAgICAgICAgIGRlc2NyaXB0b3IudmFsdWUuX19vbl9fID0gJ3NlcnZlcic7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoZGVmaW5lUHJvcGVydHkudHlwZSkge1xuICAgICAgICAgICAgZGVzY3JpcHRvci52YWx1ZS5fX3JldHVybnNfXyA9IGRlZmluZVByb3BlcnR5LnR5cGU7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGRlZmluZVByb3BlcnR5Lm9mKSB7XG4gICAgICAgICAgICBkZXNjcmlwdG9yLnZhbHVlLl9fcmV0dXJuc19fID0gZGVmaW5lUHJvcGVydHkub2Y7XG4gICAgICAgICAgICBkZXNjcmlwdG9yLnZhbHVlLl9fcmV0dXJuc2FycmF5X18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ICAgICAgICAgICBkZWZpbmVQcm9wZXJ0eS52YWxpZGF0ZVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRhcmdldC5wcm90b3R5cGUuX19hbW9ycGhpY3Byb3BzX19bcHJvcGVydHlOYW1lXSA9IGRlZmluZVByb3BlcnR5O1xuICAgICAgICAgICAgICAgIGNvbnN0IHZhbHVlID0gZGVmaW5lUHJvcGVydHkudmFsdWU7XG5cbiAgICAgICAgICAgICAgICAvLyBUaGUgZ2V0dGVyIGFjdHVhbGx5IGluaXRpYWxpemVzIHRoZSBwcm9wZXJ0eVxuICAgICAgICAgICAgICAgIGRlZmluZVByb3BlcnR5LmdldCA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IG5hbWVTcGFjZWRQcm9wZXJ0eSA9IGBfXyR7cHJvcGVydHlOYW1lfWA7XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzW25hbWVTcGFjZWRQcm9wZXJ0eV0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBjbG9uZVRlbXBsYXRlID0gZGVmaW5lUHJvcGVydHkub2YgfHwgZGVmaW5lUHJvcGVydHkudHlwZSB8fCBudWxsO1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpc1tuYW1lU3BhY2VkUHJvcGVydHldID0gT2JqZWN0VGVtcGxhdGUuY2xvbmUodmFsdWUsIGNsb25lVGVtcGxhdGUpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzW25hbWVTcGFjZWRQcm9wZXJ0eV07XG4gICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgIGNvbnN0IGRlZmluZVByb3BlcnRpZXMgPSB7fTtcbiAgICAgICAgICAgICAgICBvYmplY3RUZW1wbGF0ZS5fc2V0dXBQcm9wZXJ0eShwcm9wZXJ0eU5hbWUsIGRlZm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AgICAgIGRlc2NyaXB0b3IudmFsdWUuX19yZXR1cm5zX18gPSBkZWZpbmVQcm9wZXJ0eS50eXBlO1xuICAgICAgICB9XG4gICAgICAgIGlmIChkZWZpbmVQcm9wZXJ0eS5vZikge1xuICAgICAgICAgICAgZGVzY3JpcHRvci52YWx1ZS5fX3JldHVybnNfXyA9IGRlZmluZVByb3BlcnR5Lm9mO1xuICAgICAgICAgICAgZGVzY3JpcHRvci52YWx1ZS5fX3JldHVybnNhcnJheV9fID0gdHJ1ZTtcbiAgICAgICAgfVxuICAgIH07XG59O1xuXG5cbmZ1bmN0aW9uIGFwcGx5UnVsZVNldChwcm9wLCBydWxlU2V0KSB7XG4gICAgaWYgKHByb3AgaW5zdGFuY2VvZiBBcnJheSAmJiBydWxlU2V0IGluc3RhbmNlb2YgQXJyYXkgJiYgcnVsZVNldC5sZW5ndGggPiAwKSB7XG4gICAgICAgIHJldHVybiBwcm9wLnNvbWUoZnVuY3Rpb24gKHIpIHtcbiAgICAgICAgICAgIHJldHVybiBydWxlU2V0LmluZGV4T2YocikgPj0gMDtcbiAgICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuIHByb3A7XG4gICAgfVxufSJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.removeAll = exports.remove = exports.getArrayChangeGroup = exports.getPropChangeGroup = exports.get = void 0; | ||
var Types_1 = require("./Types"); | ||
@@ -55,2 +56,2 @@ var Subscriptions = require("./Subscriptions"); | ||
exports.removeAll = removeAll; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hhbmdlR3JvdXBzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2hlbHBlcnMvQ2hhbmdlR3JvdXBzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsaUNBQTZFO0FBQzdFLCtDQUFpRDtBQ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dCBzdWJzY3JpcHRpb24gaW4gU3Vic2NyaXB0aW9ucy5nZXRTdWJzY3JpcHRpb25zKHNlbW90dXMpKSB7XG4gICAgICAgIHJlbW92ZSh0eXBlLCBzdWJzY3JpcHRpb24sIHNlbW90dXMpO1xuICAgIH1cbn0iXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.logChanges = exports.clearClientSession = exports.generate = exports.manage = exports.create = exports.accept = exports.doNotAccept = exports.doNotChange = exports.objectOnServerOnly = exports.objectOnClientOnly = exports.isIsolatedObject = void 0; | ||
var Sessions = require("./Sessions"); | ||
@@ -263,2 +264,2 @@ /** | ||
exports.logChanges = logChanges; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2hhbmdlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9oZWxwZXJzL0NoYW5nZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSxxQ0FBdUM7QUFFdkM7O0dBRUc7QUFFSCw2RkFBNkY7QUFFN0YsU0FBUyxzQkFBc0IsQ0FBQyxPQUFnQjtJQUM1QyxPQUFPLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLEtBQUssUUFBUSxJQUFJLE9BQU8sQ0FBQyxVQUFVLElBQUksT0FBTyxDQUFDLFVBQVUsQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUMvRixDQUFDO0FBRUQsU0FBZ0IsZ0JBQWdCLENBQUMsT0FBZ0IsRUFBRSxHQUFHO0lBQ2xELElBQUksa0JBQWtCLENBQUMsT0FBTyxFQUFFLEdBQUcsQ0FBQyxFQUFFO1FBQ2xDLE9BQU8sSUFBSSxDQUFDO0tBQ2Y7U0FDSSxJQUFJLGtCQUFrQixDQUFDLE9BQU8sRUFBRSxHQUFHLENBQUMsRUFBRTtRQUN2QyxPQUFPLElBQUksQ0FBQztLQU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gbnVsbCB0cmVhdGVkIGxpa2UgYSBwcm9wZXJ0eSBjaGFuZ2VcbiAgICAgICAgICAgICAgICAgICAgICAgIHNlbW90dXMuX2NoYW5nZWRWYWx1ZShvYmosIHByb3AsIG9ialtwcm9wXSk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAob2JqW3Byb3BdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzd2l0Y2ggZnJvbSBudWxsIGxpa2UgYW4gYXJyYXkgcmVmIHdoZXJlIGFycmF5IHdpbGwgYmUgY3JlYXRlZFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFvYmpbYF9fJHtwcm9wfWBdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9ialtwcm9wXS5sZW5ndGggPT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBzd2l0Y2ggdG8gZW1wdHkgYXJyYXlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Vtb3R1cy5fY2hhbmdlZFZhbHVlKG9iaiwgcHJvcCwgb2JqW3Byb3BdKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvYmpbYF9fJHtwcm9wfWBdID0gW107IC8vIFN0YXJ0IGZyb20gc2NyYXRjaFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBzZW1vdHVzLl9yZWZlcmVuY2VkQXJyYXkob2JqLCBwcm9wLCBvYmpbYF9fJHtwcm9wfWBdKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgY29uc3QgY3VyclZhbHVlID0gc2Vtb3R1cy5fY29udmVydFZhbHVlKG9ialtwcm9wXSk7XG4gICAgICAgICAgICAgICAgY29uc3QgcHJldlZhbHVlID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ICAgICAgICAgICAgICAvLyBzd2l0Y2ggdG8gbnVsbCB0cmVhdGVkIGxpa2UgYSBwcm9wZXJ0eSBjaGFuZ2VcbiAgICAgICAgICAgICAgICAgICAgICAgIHNlbW90dXMuX2NoYW5nZWRWYWx1ZShvYmosIHByb3AsIG9ialtwcm9wXSk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAob2JqW3Byb3BdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzd2l0Y2ggZnJvbSBudWxsIGxpa2UgYW4gYXJyYXkgcmVmIHdoZXJlIGFycmF5IHdpbGwgYmUgY3JlYXRlZFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFvYmpbYF9fJHtwcm9wfWBdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9ialtwcm9wXS5sZW5ndGggPT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBzd2l0Y2ggdG8gZW1wdHkgYXJyYXlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Vtb3R1cy5fY2hhbmdlZFZhbHVlKG9iaiwgcHJvcCwgb2JqW3Byb3BdKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBvYmpbYF9fJHtwcm9wfWBdID0gW107IC8vIFN0YXJ0IGZyb20gc2NyYXRjaFxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBzZW1vdHVzLl9yZWZlcmVuY2VkQXJyYXkob2JqLCBwcm9wLCBvYmpbYF9fJHtwcm9wfWBdKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgY29uc3QgY3VyclZhbHVlID0gc2Vtb3R1cy5fY29udmVydFZhbHVlKG9ialtwcm9wXSk7XG4gICAgICAgICAgICAgICAgY29uc3QgcHJldlZhbHVlID0gc2Vtb3R1cy5fY29udmVydFZhbHVlKG9ialtgX18ke3Byb3B9YF0pO1xuXG4gICAgICAgICAgICAgICAgaWYgKGNyZWF0ZUNoYW5nZXMgJiYgY3VyclZhbHVlICE9PSBwcmV2VmFsdWUpIHtcbiAgICAgICAgICAgICAgICAgICAgc2Vtb3R1cy5fY2hhbmdlZFZhbHVlKG9iaiwgcHJvcCwgb2JqW3Byb3BdKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBvYmpbYF9fJHtwcm9wfWBdID0gb2JqW3Byb3BdO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuIl19 |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -38,2 +39,3 @@ }); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.postCallErrorLog = exports.processCall = void 0; | ||
var Utilities_1 = require("./Utilities"); | ||
@@ -524,2 +526,2 @@ /** | ||
exports.postCallErrorLog = postCallErrorLog; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvY2Vzc0NhbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGVscGVycy9Qcm9jZXNzQ2FsbC50cyJdLCJuYW1lcyI6W10sIm1hcHB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1lbnQgY2FsbENvbnRleHQucmV0cmllcyBhZnRlciBjaGVja2luZyBpZiA8IDMuIFNob3VsZCByZXRyeSAzIHRpbWVzLlxuICAgICAgICBpZiAoY2FsbENvbnRleHQucmV0cmllcysrIDwgMykge1xuICAgICAgICAgICAgcG9zdENhbGxFcnJvckxvZyhzZW1vdHVzLmxvZ2dlciwgJ3Bvc3RDYWxsLnVwZGF0ZUNvbmZsaWN0JywgdW5kZWZpbmVkLCAnd2FybicsIHJlbW90ZUNhbGwubmFtZSwgcmVtb3RlQ2FsbCwgY2FsbENvbnRleHQpO1xuICAgICAgICAgICAgdXBkYXRlQ29uZmxpY3RSZXRyeSA9IHRydWU7XG4gICAgICAgICAgICAvLyBUaGUgZm9sbG93aW5nIGFzc2lnbm1lbnQgaXMgb25seSB1c2VkIGZvciB0aGUgZXJyb3IgaGFuZGxlclxuICAgICAgICAgICAgcGFja2FnZUNoYW5nZXNQYXlsb2FkID0ge1xuICAgICAgICAgICAgICAgIHR5cGU6ICdyZXRyeSdcbiAgICAgICAgICAgIH07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBwb3N0Q2FsbEVycm9yTG9nKHNlbW90dXMubG9nZ2VyLCAncG9zdENhbGwudXBkYXRlQ29uZmxpY3QnLCB1bmRlZmluZWQsICdlcnJvcicsIHJlbW90ZUNhbGwubmFtZSwgcmVtb3RlQ2FsbCwgY2FsbENvbnRleHQpO1xuICAgICAgICAgICAgcGFja2FnZUNoYW5nZXNQYXlsb2FkID0ge1xuICAgICAgICAgICAgICAgIHR5cGU6ICdyZXRyeScsXG4gICAgICAgICAgICAgICAgc3luYzogZmFsc2VcbiAgICAgICAgICAgIH07XG4gICAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgICBpZiAoIShlcnIgaW5zdGFuY2VvZiBFcnJvcikpIHtcbiAgICAgICAgICAgIHBvc3RDYWxsRXJyb3JMb2coc2Vtb3R1cy5sb2dnZXIsICdwb3N0Q2FsbC5lcnJvcics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AgICAgICAgICAgICAgY29tcG9uZW50OiAnc2Vtb3R1cycsXG4gICAgICAgICAgICAgICAgbW9kdWxlOiAncHJvY2Vzc0NhbGwnLFxuICAgICAgICAgICAgICAgIGFjdGl2aXR5OiAncHJlU2VydmVyQ2FsbCcsXG4gICAgICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgICAgICBjYWxsOiByZW1vdGVDYWxsLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgIHNlcXVlbmNlOiByZW1vdGVDYWxsLnNlcXVlbmNlXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSwgXHQnQ291bGQgbm90IGZpbmQgdGVtcGxhdGUgZm9yICcgKyBvYmpJZCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gc2Vtb3R1cy5jb250cm9sbGVyLnByZVNlcnZlckNhbGwuY2FsbChcbiAgICAgICAgICAgIHNlbW90dXMuY29udHJvbGxlcixcbiAgICAgICAgICAgIHJlbW90ZUNhbGwuY2hhbmdlcy5sZW5ndGggPiAyLFxuICAgICAgICAgICAgY2hhbmdlcyxcbiAgICAgICAgICAgIGNhbGxDb250ZXh0LFxuICAgICAgICAgICAgZm9yY2V1cGRhdGUsXG4gICAgICAgICAgICByZW1vdGVDYWxsLm5hbWUsXG4gICAgICAgICAgICByZW1vdGVDYWxsLFxuICAgICAgICAgICAgaXNQdWJsaWMsXG4gICAgICAgICAgICBIVFRQT2Jqc1xuICAgICAgICApO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cbn1cblxuLyoqXG4gKiBBcHBseSBjaGFuZ2VzIGluIHRoZSBtZXNzYWdlIGFuZCB0aGVuIHZhbGlkYXRlIHRoZSBjYWxsLiAgVGhyb3cgXCJTeW5jIEVycm9yXCIgaWYgY2hhbmdlcyBjYW4ndCBiZSBhcHBsaWVkXG4gKlxuICogQHJldHVybnMge3Vua25vd259IHVua25vd25cbiAqL1xuZnVuY3Rpb24g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vc3RDYWxsRXJyb3JMb2cobG9nZ2VyLCBhY3Rpdml0eSwgbWVzc2FnZSwgbG9nVHlwZSwgbG9nU3RyaW5nLCByZW1vdGVDYWxsOiBSZW1vdGVDYWxsLCBjYWxsQ29udGV4dDogQ2FsbENvbnRleHQpIHtcbiAgICBsZXQgbG9nQm9keSA9IHtcbiAgICAgICAgY29tcG9uZW50OiAnc2Vtb3R1cycsXG4gICAgICAgIG1vZHVsZTogJ3Byb2Nlc3NDYWxsLmZhaWx1cmUnLFxuICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICBjYWxsOiByZW1vdGVDYWxsLm5hbWUsXG4gICAgICAgICAgICBjYWxsVGltZTogbG9nVGltZShjYWxsQ29udGV4dCksXG4gICAgICAgICAgICBzZXF1ZW5jZTogcmVtb3RlQ2FsbC5zZXF1ZW5jZSxcbiAgICAgICAgICAgIG1lc3NhZ2U6IHVuZGVmaW5lZFxuICAgICAgICB9LFxuICAgICAgICBhY3Rpdml0eTogdW5kZWZpbmVkXG4gICAgfTtcblxuICAgIGxvZ0JvZHkuYWN0aXZpdHkgPSBhY3Rpdml0eTtcblxuICAgIGlmIChsb2dnZXIuZGF0YSkge1xuICAgICAgICBsb2dCb2R5LmRhdGEubWVzc2FnZSA9IG1lc3NhZ2U7XG4gICAgfVxuXG4gICAgbG9nZ2VyW2xvZ1R5cGVdKGxvZ0JvZHksIGxvZ1N0cmluZyk7XG59XG4iXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.save = exports.restore = exports.sync = exports.get = exports.remove = exports.create = void 0; | ||
/** | ||
@@ -147,2 +148,2 @@ * Obtain a session for tracking subscriptions | ||
exports.save = save; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2Vzc2lvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGVscGVycy9TZXNzaW9ucy50cyJdLCJuYW1lcyI6W10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IGdvb2QgZW5vdWdoXG4gICAgICAgIHJlZmVyZW5jZWQ6IG5ldyBEYXRlKCkuZ2V0VGltZSgpLCAvLyBVc2VkIGZvciByZWFwaW5nIG9sZCBzZXNzaW9uc1xuICAgICAgICBkYXRhOiBKU09OLnN0cmluZ2lmeShzZXNzaW9uKSAvLyBBbGwgdGhlIHNlc3Npb24gZGF0YVxuICAgIH07XG5cbiAgICBzZXNzaW9uLm9iamVjdHMgPSBvYmplY3RzO1xuICAgIHNlbW90dXMubG9nZ2VyLmRlYnVnKHtjb21wb25lbnQ6ICdzZW1vdHVzJywgbW9kdWxlOiAnc2F2ZScsIGFjdGl2aXR5OiAnc2F2ZSd9KTtcblxuICAgIHJldHVybiBzYXZlZFNlc3Npb247XG59XG4iXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.subscribe = exports.getSubscriptions = exports.getSubscription = void 0; | ||
var Sessions = require("./Sessions"); | ||
@@ -62,2 +63,2 @@ /** | ||
exports.subscribe = subscribe; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3Vic2NyaXB0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9oZWxwZXJzL1N1YnNjcmlwdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxxQ0FBdUM7QUFHdkM7Ozs7Ozs7OztHQVNHO0FBQ0gsU0FBZ0IsZUFBZSxDQUFDLE9BQWdCLEVBQUUsY0FBZTtJQUM3RCxPQUFPLFFBQVEsQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUMsYUFBYSxDQUFDLGNBQWMsSUFBSSxDQUFDLENBQUMsQ0FBQztBQUNwRSxDQUFDO0FBRkQsMENBRUM7QUFFRDs7Ozs7Ozs7O0dBU0c7QUFDSCxTQUFnQixnQkFBZ0IsQ0FBQyxPQUFnQixFQUFFLFNBQ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dW5jdGlvbiBzdWJzY3JpYmUoc2Vtb3R1czogU2Vtb3R1cywgcm9sZSkge1xuICAgIGNvbnN0IHNlc3Npb24gPSBTZXNzaW9ucy5nZXQoc2Vtb3R1cyk7XG4gICAgY29uc3Qgc3Vic2NyaXB0aW9uSWQgPSBzZXNzaW9uLm5leHRTdWJzY3JpcHRpb25JZCsrO1xuXG4gICAgc2Vzc2lvbi5zdWJzY3JpcHRpb25zW3N1YnNjcmlwdGlvbklkXSA9IHtcbiAgICAgICAgcm9sZTogcm9sZSxcbiAgICAgICAgbG9nOiB7XG4gICAgICAgICAgICBhcnJheToge30sXG4gICAgICAgICAgICBjaGFuZ2U6IHt9LFxuICAgICAgICAgICAgYXJyYXlEaXJ0eToge31cbiAgICAgICAgfVxuICAgIH07XG5cbiAgICByZXR1cm4gc3Vic2NyaXB0aW9uSWQ7XG59Il19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Change = void 0; | ||
exports.Change = 'change'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGVscGVycy9UeXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQWFhLFFBQUEsTUFBTSxHQUFHLFFBQVEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7U3VwZXJ0eXBlfSBmcm9tICdAaGF2ZW50ZWNoL3N1cGVydHlwZSc7XG5pbXBvcnQge1JlcXVlc3QsIFJlc3BvbnNlfSBmcm9tICdleHByZXNzJztcbmV4cG9ydCB0eXBlIEhUVFBPYmpzID0ge3JlcXVlc3Q6IFJlcXVlc3QsIHJlc3BvbnNlOiBSZXNwb25zZX07XG5cbmV4cG9ydCB0eXBlIFN1YnNjcmlwdGlvbiA9IHtcbiAgICByb2xlOiBzdHJpbmc7XG4gICAgbG9nOiB7XG4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5nX186IGJvb2xlYW47XG4gICAgX3VzZUdldHRlcnNTZXR0ZXJzOiBib29sZWFuO1xuICAgIGxvZ2dlcjogYW55O1xuICAgIHJvbGU6IGFueTtcbiAgICBjdXJyZW50U2Vzc2lvbjogYW55O1xuICAgIHNlc3Npb25zPzogU2Vzc2lvbnM7XG4gICAgbmV4dFN1YnNjcmlwdGlvbklkOiBudW1iZXI7XG4gICAgbmV4dFNlc3Npb25JZDogbnVtYmVyO1xuICAgIGNvbnRyb2xsZXI6IElTZW1vdHVzQ29udHJvbGxlcjtcbiAgICBjaGFuZ2VTdHJpbmc6IHN0cmluZztcblxuXG4gICAgX2dldFNlc3Npb24oX3NpZD86IGFueSk6IFNlc3Npb247XG5cbiAgICBzdWJzY3JpYmUocm9sZTogYW55KTogbnVtYmVyO1xuXG4gICAgc2V0U2Vzc2lvbihzZXNzaW9uSWQ6IGFueSk6IHZvaWQ7XG5cbiAgICBnZXRDaGFuZ2VzKHN1YnNjcmlwdGlvbklkPzogYW55KTogQ2hhbmdlR3JvdXA7XG5cbiAgICBfZGVsZXRlQ2hhbmdlcygpOiB2b2lkO1xuXG4gICAgZ2V0UGVuZGluZ0NhbGxDb3VudChzZXNzaW9uSWQ6IGFueSk6IGFueTtcbn1cbiJdfQ== |
"use strict"; | ||
// Q Replacement Helpers | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.logTime = exports.getError = exports.defer = exports.delay = void 0; | ||
function delay(ms) { | ||
@@ -46,2 +47,2 @@ return new Promise(function (_) { return setTimeout(_, ms); }); | ||
exports.logTime = logTime; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXRpbGl0aWVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2hlbHBlcnMvVXRpbGl0aWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSx3QkFBd0I7O0FBSXhCLFNBQWdCLEtB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DogQ2FsbENvbnRleHQpIHtcbiAgICByZXR1cm4gbmV3IERhdGUoKS5nZXRUaW1lKCkgLVxuICAgICAgICBjYWxsQ29udGV4dC5zdGFydFRpbWUuZ2V0VGltZSgpO1xufSJdfQ== |
@@ -5,2 +5,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Bindable = exports.Remoteable = exports.Persistable = void 0; | ||
var __extends = (this && this.__extends) || | ||
@@ -58,2 +59,2 @@ (function () { | ||
exports.Bindable = Bindable; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dXBFeHRlbmRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3NldHVwRXh0ZW5kcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsa0hBQWtIO0FBQ2xILCtFQUErRTs7QUFFL0UsSUFBTSxTQUFTLEdBQ1gsQ0FBQyxJQUFJLElBQUksSUFBSSxDQUFDLFNBQVMsQ0FBQztJQUN4QixDQUFDO1FBQ0csSUFBTSxhQUFhLEdBQ2YsTUFBTSxDQUFDLGNBQWM7WUFDckIsQ0FBQyxFQUFDLFNBQVMsRUFBRSxFQUFFLEVBQUMsWUFBWSxLQUFLO2dCQUM3QixVQUFVLENBQUMsRUFBRSxDQUFDO29CQUNWLENBQUMsQ0FBQyxTQUFTLEdBQUcsQ0FBQyxDQUFDO2dCQUNwQixDQUFDLENBQUM7WUFDTixVQUFVLENBQUMsRUFBRSxDQUFDO2dCQUNWLEtBQUssSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFO29CQUNiLElBQUksQ0FBQyxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUMsRUFBRTt3QkFDckIsQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztxQkFDZjtpQkFDSjtZQUNMLENBQUMsQ0FBQztRQU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uICAgICAgICAgICAgKHtfX3Byb3RvX186IFtdfSBpbnN0YW5jZW9mIEFycmF5ICYmXG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHtcbiAgICAgICAgICAgICAgICAgICAgZC5fX3Byb3RvX18gPSBiO1xuICAgICAgICAgICAgICAgIH0pIHx8XG4gICAgICAgICAgICBmdW5jdGlvbiAoZCwgYikge1xuICAgICAgICAgICAgICAgIGZvciAodmFyIHAgaW4gYikge1xuICAgICAgICAgICAgICAgICAgICBpZiAoYi5oYXNPd25Qcm9wZXJ0eShwKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgZFtwXSA9IGJbcF07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9O1xuICAgICAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHtcbiAgICAgICAgICAgIGV4dGVuZFN0YXRpY3MoZCwgYik7XG5cbiAgICAgICAgICAgIGZ1bmN0aW9uIF9fKCkge1xuICAgICAgICAgICAgICAgIHRoaXMuY29uc3RydWN0b3IgPSBkO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBkLnByb3RvdHlwZSA9IGIgPT09IG51bGwgPyBPYmplY3QuY3JlYXRlKGIpIDogKChfXy5wcm90b3R5cGUgPSBiLnByb3RvdHlwZSksIG5ldyBfXygpKTtcbiAgICAgICAgfTtcbiAgICB9KSgpO1xuXG5leHBvcnQgZnVuY3Rpb24gUGVyc2lzdGFibGUoQmFzZSkge1xuICAgIHJldHVybiAoZnVuY3Rpb24gKF9zdXBlcikge1xuICAgICAgICBfX2V4dGVuZHMoY2xhc3NfMSwgX3N1cGVyKTtcblxuICAgICAgICBmdW5jdGlvbiBjbGFzc18xKCkge1xuICAgICAgICAgICAgcmV0dXJuIChfc3VwZXIgIT09IG51bGwgJiYgX3N1cGVyLmFwcGx5KHRoaXMsIGFyZ3VtZW50cykpIHx8IHRoaXM7XG4gICAgICAgIH1cblxuIC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Q0FBQztBQVZELDRCQVVDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gVGhlc2UgdHdvIG1peGlucyBhbmQgZXh0ZW5kZXIgZnVuY3Rpb25zIGFyZSBuZWVkZWQgYmVjYXVzZSBpbiB0aGUgYnJvd3NlciB3ZSBvbmx5IGluY2x1ZGUgc3VwZXJ0eXBlIGFuZCBzZW1vdHVzXG4vLyBhbmQgc2luY2UgY2xhc3NlcyB1c2UgdGhlc2UgaW4gdGhlaXIgZXh0ZW5kcyBoaWVyYXJjaHkgdGhleSBtdXN0IGJlIGRlZmluZWQuXG5cbmNvbnN0IF9fZXh0ZW5kcyA9XG4gICAgKHRoaXMgJiYgdGhpcy5fX2V4dGVuZHMpIHx8XG4gICAgKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgY29uc3QgZXh0ZW5kU3RhdGljcyA9XG4gICAgICAgICAgICBPYmplY3Quc2V0UHJvdG90eXBlT2YgfHxcbiAgICAgICAgICAgICh7X19wcm90b19fOiBbXX0gaW5zdGFuY2VvZiBBcnJheSAmJlxuICAgICAgICAgICAgICAgIGZ1bmN0aW9uIChkLCBiKSB7XG4gICAgICAgICAgICAgICAgICAgIGQuX19wcm90b19fID0gYjtcbiAgICAgICAgICAgICAgICB9KSB8fFxuICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBwIGluIGIpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGIuaGFzT3duUHJvcGVydHkocCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRbcF0gPSBiW3BdO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfTtcbiAgICAgICAgcmV0dXJuIGZ1bmN0aW9uIChkLCBiKSB7XG4gICAgICAgICAgICBleHRlbmRTdGF0aWNzKGQsIGIpO1xuXG4gICAgICAgICAgICBmdW5jdGlvbiBfXygpIHtcbiAgICAgICAgICAgICA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jbGFzc18xKCkge1xuICAgICAgICAgICAgcmV0dXJuIChfc3VwZXIgIT09IG51bGwgJiYgX3N1cGVyLmFwcGx5KHRoaXMsIGFyZ3VtZW50cykpIHx8IHRoaXM7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gY2xhc3NfMTtcbiAgICB9KShCYXNlKVxufVxuXG5cbiJdfQ== |
@@ -0,1 +1,4 @@ | ||
## 6.0.0 | ||
* Upgraded to node 16 | ||
* Bumped dependencies to major versions | ||
## 5.0.0 | ||
@@ -2,0 +5,0 @@ * Updated knex and pg versions for node 14 upgrade. |
{ | ||
"name": "@haventech/semotus", | ||
"version": "5.0.0", | ||
"version": "6.0.0-beta.0", | ||
"description": "A subclass of supertype that synchronizes sets of objects.", | ||
@@ -40,20 +40,21 @@ "homepage": "https://github.com/haven-life/amorphic-framework", | ||
"devDependencies": { | ||
"@haventech/supertype": "4.x", | ||
"@types/chai": "^3.4.34", | ||
"@types/express": "^4.17.11", | ||
"@types/mocha": "^2.2.39", | ||
"@types/node": "^14.14.37", | ||
"express": "^4.17.1", | ||
"mock-req-res": "^1.2.0", | ||
"chai": "3.x", | ||
"eslint": "3.7.x", | ||
"mocha": "7.1.1", | ||
"nyc": "^15.0.1", | ||
"sinon": "1.15.x", | ||
"ts-node": "^6.1.0", | ||
"typescript": "3.5.2", | ||
"underscore": "^1.13.2" | ||
"@haventech/supertype": "5.1.0-beta.0", | ||
"@types/chai": "4.3.0", | ||
"@types/express": "4.17.13", | ||
"@types/mocha": "9.1.0", | ||
"@types/node": "16.11.22", | ||
"@types/express-serve-static-core": "4.17.21", | ||
"express": "4.17.2", | ||
"mock-req-res": "1.2.0", | ||
"chai": "4.3.6", | ||
"eslint": "8.8.0", | ||
"mocha": "9.2.0", | ||
"nyc": "15.1.0", | ||
"sinon": "13.0.1", | ||
"ts-node": "10.5.0", | ||
"typescript": "3.9.10", | ||
"underscore": "1.13.2" | ||
}, | ||
"peerDependencies": { | ||
"@haventech/supertype": "4.x" | ||
"@haventech/supertype": "5.1.0-beta.0" | ||
}, | ||
@@ -60,0 +61,0 @@ "dependencies": { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Change = void 0; | ||
exports.Change = 'change'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJUeXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQWFhLFFBQUEsTUFBTSxHQUFHLFFBQVEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7U3VwZXJ0eXBlfSBmcm9tICdAaGF2ZW50ZWNoL3N1cGVydHlwZSc7XG5pbXBvcnQge1JlcXVlc3QsIFJlc3BvbnNlfSBmcm9tICdleHByZXNzJztcbmV4cG9ydCB0eXBlIEhUVFBPYmpzID0ge3JlcXVlc3Q6IFJlcXVlc3QsIHJlc3BvbnNlOiBSZXNwb25zZX07XG5cbmV4cG9ydCB0eXBlIFN1YnNjcmlwdGlvbiA9IHtcbiAgICByb2xlOiBzdHJpbmc7XG4gICAgbG9nOiB7XG4gICAgICAgIGFycmF5OiBBcnJheUdyb3VwO1xuICAgICAgICBhcnJheURpcnR5OiBBcnJheUdyb3VwO1xuICAgICAgICBjaGFuZ2U6IENoYW5nZUdyb3VwO1xuICAgIH1cbn1cblxuZXhwb3J0IGNvbnN0IENoYW5nZSA9ICdjaGFuZ2UnO1xuZXhwb3J0IHR5cGUgQXJyYXlUeXBlcyA9ICdhcnJheScgfCAnYXJyYXlEaXJ0eSc7XG5leHBvcnQgdHlwZSBFcnJvclR5cGUgPSAnZXJyb3InIHwgJ3JldHJ5JyB8ICdyZXNwb25zZSc7XG5cbmV4cG9ydCB0eXBlIENhbGxDb250ZXh0ID0geyByZXRyaWVzOiBudW1iZXI7IHN0YXJ0VGltZTogRGF0ZSB9O1xuXG5leHBvcnQgdHlwZSBQcm9jZ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bihzZXNzaW9uSWQ6IGFueSk6IHZvaWQ7XG5cbiAgICBnZXRDaGFuZ2VzKHN1YnNjcmlwdGlvbklkPzogYW55KTogQ2hhbmdlR3JvdXA7XG5cbiAgICBfZGVsZXRlQ2hhbmdlcygpOiB2b2lkO1xuXG4gICAgZ2V0UGVuZGluZ0NhbGxDb3VudChzZXNzaW9uSWQ6IGFueSk6IGFueTtcbn1cbiJdfQ== |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
567080
6646
16
1