diff --git a/lib/_DefaultDict.js b/lib/_DefaultDict.js index a5fa3da..5028805 100644 --- a/lib/_DefaultDict.js +++ b/lib/_DefaultDict.js @@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = _DefaultDict; -var _aureoomsJsError = require('@aureooms/js-error'); +var _jsError = require('@aureooms/js-error'); -var _aureoomsJsMapping = require('@aureooms/js-mapping'); +var _jsMapping = require('@aureooms/js-mapping'); function _DefaultDict(Dict, Map) { @@ -23,18 +23,18 @@ function _DefaultDict(Dict, Map) { var default_factory = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - return new DefaultDict(default_factory, (0, _aureoomsJsMapping.fromkeys)(seq, value)); + return new DefaultDict(default_factory, (0, _jsMapping.fromkeys)(seq, value)); }; DefaultDict.prototype = new Dict(); DefaultDict.prototype.__missing__ = function (key) { - if (this.default_factory === null) throw new _aureoomsJsError.KeyError(key); + if (this.default_factory === null) throw new _jsError.KeyError(key); return this.default_factory(); }; return DefaultDict; } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9fRGVmYXVsdERpY3QuanMiXSwibmFtZXMiOlsiX0RlZmF1bHREaWN0IiwiRGljdCIsIk1hcCIsIkRlZmF1bHREaWN0IiwiZGVmYXVsdF9mYWN0b3J5IiwibWFwcGluZyIsImNvbnRhaW5lciIsImZyb21rZXlzIiwic2VxIiwidmFsdWUiLCJwcm90b3R5cGUiLCJfX21pc3NpbmdfXyIsImtleSJdLCJtYXBwaW5ncyI6Ijs7Ozs7a0JBR3dCQSxZOztBQUh4Qjs7QUFDQTs7QUFFZSxTQUFTQSxZQUFULENBQXdCQyxJQUF4QixFQUErQkMsR0FBL0IsRUFBcUM7O0FBRW5ELEtBQU1DLGNBQWMsU0FBZEEsV0FBYyxDQUFXQyxlQUFYLEVBQThCQyxPQUE5QixFQUF5Qzs7QUFFNUQsT0FBS0MsU0FBTCxHQUFpQixJQUFJSixHQUFK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fZmFjdG9yeSA9IGRlZmF1bHRfZmFjdG9yeSA7XG5cblx0fSA7XG5cblx0RGVmYXVsdERpY3QuZnJvbWtleXMgPSBmdW5jdGlvbiAoIHNlcSAsIHZhbHVlID0gbnVsbCAsIGRlZmF1bHRfZmFjdG9yeSA9IG51bGwgKSB7XG5cblx0XHRyZXR1cm4gbmV3IERlZmF1bHREaWN0KCBkZWZhdWx0X2ZhY3RvcnkgLCBmcm9ta2V5cyggc2VxICwgdmFsdWUgKSApIDtcblxuXHR9IDtcblxuXHREZWZhdWx0RGljdC5wcm90b3R5cGUgPSBuZXcgRGljdCggKSA7XG5cblx0RGVmYXVsdERpY3QucHJvdG90eXBlLl9fbWlzc2luZ19fID0gZnVuY3Rpb24gKCBrZXkgKSB7XG5cblx0XHRpZiAoIHRoaXMuZGVmYXVsdF9mYWN0b3J5ID09PSBudWxsICkgdGhyb3cgbmV3IEtleUVycm9yKCBrZXkgKSA7XG5cblx0XHRyZXR1cm4gdGhpcy5kZWZhdWx0X2ZhY3RvcnkoICkgO1xuXG5cdH0gO1xuXG5cdHJldHVybiBEZWZhdWx0RGljdCA7XG5cbn1cbiJdfQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9fRGVmYXVsdERpY3QuanMiXSwibmFtZXMiOlsiX0RlZmF1bHREaWN0IiwiRGljdCIsIk1hcCIsIkRlZmF1bHREaWN0IiwiZGVmYXVsdF9mYWN0b3J5IiwibWFwcGluZyIsImNvbnRhaW5lciIsImZyb21rZXlzIiwic2VxIiwidmFsdWUiLCJwcm90b3R5cGUiLCJfX21pc3NpbmdfXyIsImtleSJdLCJtYXBwaW5ncyI6Ijs7Ozs7a0JBR3dCQSxZOztBQUh4Qjs7QUFDQTs7QUFFZSxTQUFTQSxZQUFULENBQXdCQyxJQUF4QixFQUErQkMsR0FBL0IsRUFBcUM7O0FBRW5ELEtBQU1DLGNBQWMsU0FBZEEsV0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XBwaW5nICApIHtcblxuXHRcdHRoaXMuY29udGFpbmVyID0gbmV3IE1hcCggbWFwcGluZyApIDtcblxuXHRcdHRoaXMuZGVmYXVsdF9mYWN0b3J5ID0gZGVmYXVsdF9mYWN0b3J5IDtcblxuXHR9IDtcblxuXHREZWZhdWx0RGljdC5mcm9ta2V5cyA9IGZ1bmN0aW9uICggc2VxICwgdmFsdWUgPSBudWxsICwgZGVmYXVsdF9mYWN0b3J5ID0gbnVsbCApIHtcblxuXHRcdHJldHVybiBuZXcgRGVmYXVsdERpY3QoIGRlZmF1bHRfZmFjdG9yeSAsIGZyb21rZXlzKCBzZXEgLCB2YWx1ZSApICkgO1xuXG5cdH0gO1xuXG5cdERlZmF1bHREaWN0LnByb3RvdHlwZSA9IG5ldyBEaWN0KCApIDtcblxuXHREZWZhdWx0RGljdC5wcm90b3R5cGUuX19taXNzaW5nX18gPSBmdW5jdGlvbiAoIGtleSApIHtcblxuXHRcdGlmICggdGhpcy5kZWZhdWx0X2ZhY3RvcnkgPT09IG51bGwgKSB0aHJvdyBuZXcgS2V5RXJyb3IoIGtleSApIDtcblxuXHRcdHJldHVybiB0aGlzLmRlZmF1bHRfZmFjdG9yeSggKSA7XG5cblx0fSA7XG5cblx0cmV0dXJuIERlZmF1bHREaWN0IDtcblxufVxuIl19 \ No newline at end of file diff --git a/lib/index.js b/lib/index.js index bcccebb..97e6ba9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -13,11 +13,11 @@ var _defaultdict2 = require('./_defaultdict'); var _defaultdict3 = _interopRequireDefault(_defaultdict2); -var _aureoomsJsCollectionsDict = require('@aureooms/js-collections-dict'); +var _jsCollectionsDict = require('@aureooms/js-collections-dict'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var DefaultDict = (0, _DefaultDict3.default)(_aureoomsJsCollectionsDict.Dict, Map); // use native Map implementation +var DefaultDict = (0, _DefaultDict3.default)(_jsCollectionsDict.Dict, Map); // use native Map implementation var defaultdict = (0, _defaultdict3.default)(DefaultDict); exports.default = defaultdict; @@ -25,4 +25,4 @@ exports.defaultdict = defaultdict; exports.DefaultDict = DefaultDict; exports._defaultdict = _defaultdict3.default; exports._DefaultDict = _DefaultDict3.default; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJEZWZhdWx0RGljdCIsIk1hcCIsImRlZmF1bHRkaWN0IiwiX2RlZmF1bHRkaWN0IiwiX0RlZmF1bHREaWN0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7Ozs7QUFDQTs7OztBQUVBOzs7O0FBRUEsSUFBTUEsY0FBYyw0REFBcUJDLEdBQXJCLENBQXBCLEMsQ0FBaUQ7QUFDakQsSUFBTUMsY0FBYywyQkFBY0YsV0FBZCxDQUFwQjs7a0JBRWVFLFc7UUFHZEEsVyxHQUFBQSxXO1FBQ0FGLFcsR0FBQUEsVztRQUNBRyxZO1FBQ0FDLFkiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgX0RlZmF1bHREaWN0IGZyb20gJy4vX0RlZmF1bHREaWN0JyA7XG5pbXBvcnQgX2RlZmF1bHRkaWN0IGZyb20gJy4vX2RlZmF1bHRkaWN0JyA7XG5cbmltcG9ydCB7IERpY3QgfSBmcm9tICdhdXJlb29tcy1qcy1jb2xsZWN0aW9ucy1kaWN0JyA7XG5cbmNvbnN0IERlZmF1bHREaWN0ID0gX0RlZmF1bHREaWN0KCBEaWN0ICwgTWFwICkgOyAvLyB1c2UgbmF0aXZlIE1hcCBpbXBsZW1lbnRhdGlvblxuY29uc3QgZGVmYXVsdGRpY3QgPSBfZGVmYXVsdGRpY3QoIERlZmF1bHREaWN0ICkgO1xuXG5leHBvcnQgZGVmYXVsdCBkZWZhdWx0ZGljdCA7XG5cbmV4cG9ydCB7XG5cdGRlZmF1bHRkaWN0ICxcblx0RGV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blx0X0RlZmF1bHREaWN0ICxcbn0gO1xuIl19 \ No newline at end of file