shift-reducer
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -21,3 +21,3 @@ "use strict"; | ||
var ShiftSpec = require("shift-spec-js")["default"]; | ||
var ShiftSpec = require("shift-spec")["default"]; | ||
@@ -38,2 +38,2 @@ var CloneReducer = function CloneReducer() { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jbG9uZS1yZWR1Y2VyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBZ0JPLFNBQVMsV0FBTSxlQUFlOztJQUVoQixZQUFZLFlBQVosWUFBWTt3QkFBWixZQUFZOzs7cUJBQVosWUFBWTs7QUFFakMsS0FBSyxJQUFJLFFBQVEsSUFBSSxTQUFTLEVBQUU7QUFDOUIsTUFBSSxJQUFJLEdBQUcsU0FBUyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0FBQy9CLFFBQU0sQ0FBQyxjQUFjLENBQUMsWUFBWSxDQUFDLFNBQVMsYUFBVyxRQUFRLEVBQUk7QUFDakUsU0FBSyxFQUFFLGVBQVMsSUFBSSxFQUFFLEtBQUssRUFBRTtBQUFFLGFBQU8sS0FBSyxDQUFDO0tBQUU7R0FDL0MsQ0FBQyxDQUFDO0NBQ0oiLCJmaWxlIjoic3JjL2Nsb25lLXJlZHVjZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAyMDE0IFNoYXBlIFNlY3VyaXR5LCBJbmMuXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKVxuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9m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yBJU1wiIEJBU0lTLFxuICogV0lUSE9VVCBXQVJSQU5USUVTIE9SIENPTkRJVElPTlMgT0YgQU5ZIEtJTkQsIGVpdGhlciBleHByZXNzIG9yIGltcGxpZWQuXG4gKiBTZWUgdGhlIExpY2Vuc2UgZm9yIHRoZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kXG4gKiBsaW1pdGF0aW9ucyB1bmRlciB0aGUgTGljZW5zZS5cbiAqL1xuXG5pbXBvcnQgU2hpZnRTcGVjIGZyb20gXCJzaGlmdC1zcGVjXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIENsb25lUmVkdWNlciB7IH1cblxuZm9yIChsZXQgdHlwZU5hbWUgaW4gU2hpZnRTcGVjKSB7XG4gIGxldCB0eXBlID0gU2hpZnRTcGVjW3R5cGVOYW1lXTtcbiAgT2JqZWN0LmRlZmluZVByb3BlcnR5KENsb25lUmVkdWNlci5wcm90b3R5cGUsIGByZWR1Y2Uke3R5cGVOYW1lfWAsIHtcbiAgICB2YWx1ZTogZnVuY3Rpb24obm9kZSwgc3RhdGUpIHsgcmV0dXJuIHN0YXRlOyB9XG4gIH0pO1xufVxuIl19 |
@@ -20,3 +20,3 @@ "use strict"; | ||
var ShiftSpec = require("shift-spec-js")["default"]; | ||
var ShiftSpec = require("shift-spec")["default"]; | ||
@@ -102,2 +102,2 @@ function transformWithSpec(_x, _x2, _x3) { | ||
// TODO: checked version | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztxQkFnRHdCLE1BQU07Ozs7Ozs7Ozs7Ozs7Ozs7O0lBaEN2QixTQUFTLFdBQU0sZUFBZTs7QUFFckMsU0FBUyxpQkFBaUI7Ozs7OzRCQUEwQjs7UUFBekIsV0FBVztRQUFFLElBQUk7UUFBRSxJQUF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iAgICBjYXNlIFwiVW5pb25cIjpcbiAgICAgIC8vIFRPRE86IGNoZWNrZWQgdmVyc2lvblxuICAgICAgcmV0dXJuIHRyYW5zZm9ybVdpdGhTcGVjKHRyYW5zZm9ybWVyLCBub2RlLCBTaGlmdFNwZWNbbm9kZS50eXBlXSk7XG4gICAgZGVmYXVsdDpcbiAgICB7XG4gICAgICBsZXQgc3RhdGUgPSB7fTtcbiAgICAgIHNwZWMuZmllbGRzLmZvckVhY2goZmllbGQgPT4ge1xuICAgICAgICBsZXQgdiA9IHRyYW5zZm9ybVdpdGhTcGVjKHRyYW5zZm9ybWVyLCBub2RlW2ZpZWxkLm5hbWVdLCBmaWVsZC50eXBlKTtcbiAgICAgICAgc3RhdGVbZmllbGQubmFtZV0gPSB2ID09IG51bGwgPyBudWxsIDogdjtcbiAgICAgIH0pO1xuICAgICAgcmV0dXJuIHRyYW5zZm9ybWVyW1wicmVkdWNlXCIgKyBub2RlLnR5cGVdKG5vZGUsIHN0YXRlKTtcbiAgICB9XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gcmVkdWNlKHJlZHVjZXIsIHJlZHVjaWJsZSkge1xuICByZXR1cm4gdHJhbnNmb3JtV2l0aFNwZWMocmVkdWNlciwgcmVkdWNpYmxlLCBTaGlmdFNwZWNbcmVkdWNpYmxlLnR5cGVdKTtcbn1cblxuZXhwb3J0IHtkZWZhdWx0IGFzIENsb25lUmVkdWNlcn0gZnJvbSBcIi4vY2xvbmUtcmVkdWNlclwiO1xuZXhwb3J0IHtkZWZhdWx0IGFzIE1vbm9pZGFsUmVkdWNlcn0gZnJvbSBcIi4vbW9ub2lkYWwtcmVkdWNlclwiO1xuIl19 |
@@ -23,3 +23,3 @@ "use strict"; | ||
var ShiftSpec = require("shift-spec-js")["default"]; | ||
var ShiftSpec = require("shift-spec")["default"]; | ||
@@ -150,2 +150,2 @@ var methods = {}; | ||
Object.defineProperties(MonoidalReducer.prototype, methods); | ||
//# sourceM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||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "reducer for the Shift AST format", | ||
@@ -5,0 +5,0 @@ "author": "Shape Security Labs", |
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
34673