From ede82f1254db1567c634f9035cf45f5fdaed61fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Ooms?= Date: Tue, 28 Apr 2020 23:19:28 +0200 Subject: [PATCH] :unamused: chore: Remove generated files. --- lib/_DefaultDict.js | 40 ---------------------------------------- lib/_defaultdict.js | 21 --------------------- lib/index.js | 28 ---------------------------- 3 files changed, 89 deletions(-) delete mode 100644 lib/_DefaultDict.js delete mode 100644 lib/_defaultdict.js delete mode 100644 lib/index.js diff --git a/lib/_DefaultDict.js b/lib/_DefaultDict.js deleted file mode 100644 index 5028805..0000000 --- a/lib/_DefaultDict.js +++ /dev/null @@ -1,40 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _DefaultDict; - -var _jsError = require('@aureooms/js-error'); - -var _jsMapping = require('@aureooms/js-mapping'); - -function _DefaultDict(Dict, Map) { - - var DefaultDict = function DefaultDict(default_factory, mapping) { - - this.container = new Map(mapping); - - this.default_factory = default_factory; - }; - - DefaultDict.fromkeys = function (seq) { - var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - var default_factory = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - - - 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 _jsError.KeyError(key); - - return this.default_factory(); - }; - - return DefaultDict; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9fRGVmYXVsdERpY3QuanMiXSwibmFtZXMiOlsiX0RlZmF1bHREaWN0IiwiRGljdCIsIk1hcCIsIkRlZmF1bHREaWN0IiwiZGVmYXVsdF9mYWN0b3J5IiwibWFwcGluZyIsImNvbnRhaW5lciIsImZyb21rZXlzIiwic2VxIiwidmFsdWUiLCJwcm90b3R5cGUiLCJfX21pc3NpbmdfXyIs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aW5nJyA7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIF9EZWZhdWx0RGljdCAoIERpY3QgLCBNYXAgKSB7XG5cblx0Y29uc3QgRGVmYXVsdERpY3QgPSBmdW5jdGlvbiAoIGRlZmF1bHRfZmFjdG9yeSAgLCBtYXBwaW5nICApIHtcblxuXHRcdHRoaXMuY29udGFpbmVyID0gbmV3IE1hcCggbWFwcGluZyApIDtcblxuXHRcdHRoaXMuZGVmYXVsdF9mYWN0b3J5ID0gZGVmYXVsdF9mYWN0b3J5IDtcblxuXHR9IDtcblxuXHREZWZhdWx0RGljdC5mcm9ta2V5cyA9IGZ1bmN0aW9uICggc2VxICwgdmFsdWUgPSBudWxsICwgZGVmYXVsdF9mYWN0b3J5ID0gbnVsbCApIHtcblxuXHRcdHJldHVybiBuZXcgRGVmYXVsdERpY3QoIGRlZmF1bHRfZmFjdG9yeSAsIGZyb21rZXlzKCBzZXEgLCB2YWx1ZSApICkgO1xuXG5cdH0gO1xuXG5cdERlZmF1bHREaWN0LnByb3RvdHlwZSA9IG5ldyBEaWN0KCApIDtcblxuXHREZWZhdWx0RGljdC5wcm90b3R5cGUuX19taXNzaW5nX18gPSBmdW5jdGlvbiAoIGtleSApIHtcblxuXHRcdGlmICggdGhpcy5kZWZhdWx0X2ZhY3RvcnkgPT09IG51bGwgKSB0aHJvdyBuZXcgS2V5RXJyb3IoIGtleSApIDtcblxuXHRcdHJldHVybiB0aGlzLmRlZmF1bHRfZmFjdG9yeSggKSA7XG5cblx0fSA7XG5cblx0cmV0dXJuIERlZmF1bHREaWN0IDtcblxufVxuIl19 \ No newline at end of file diff --git a/lib/_defaultdict.js b/lib/_defaultdict.js deleted file mode 100644 index 65cbd8c..0000000 --- a/lib/_defaultdict.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _defaultdict; -function _defaultdict(DefaultDict) { - - var defaultdict = function defaultdict() { - var default_factory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var mapping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - - - return new DefaultDict(default_factory, mapping); - }; - - defaultdict.fromkeys = DefaultDict.fromkeys; - - return defaultdict; -} -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9fZGVmYXVsdGRpY3QuanMiXSwibmFtZXMiOlsiX2RlZmF1bHRkaWN0IiwiRGVmYXVsdERpY3QiLCJkZWZhdWx0ZGljdCIsImRlZmF1bHRfZmFjdG9yeSIsIm1hcHBpbmciLCJmcm9ta2V5cyJdLCJtYXBwaW5ncyI6Ijs7Ozs7a0JBQ3dCQSxZO0FBQVQsU0FBU0EsWUFBVCxDQUF3QkMsV0FBeEIsRUFBc0M7O0FBRXBELEtBQU1DLGNBQWMsU0FBZEEsV0FBYyxHQUFxRDtBQUFBLE1BQTFDQyxlQUEwQyx1RUFBeEIsSUFBd0I7QUFBQSxNQUFqQkMsT0FBaUIsdUVBQVAsSUFBTzs7O0FBRXhFLFNBQU8sSUFBSUgsV0FBSixDQUFpQkUsZUFBakIsRUFBbUNDLE9BQW5DLENBQVA7QUFFQSxFQUpEOztBQU1BRixhQUFZRyxRQUFaLEdBQXVCSixZQUFZSSxRQUFuQzs7QUFFQSxRQUFPSCxXQUFQO0FBRUEiLCJmaWxlIjoiX2RlZmF1bHRkaWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBfZGVmYXVsdGRpY3QgKCBEZWZhdWx0RGljdCApIHtcblxuXHRjb25zdCBkZWZhdWx0ZGljdCA9IGZ1bmN0aW9uICggZGVmYXVsdF9mYWN0b3J5ID0gbnVsbCAsIG1hcHBpbmcgPSBudWxsICkge1xuXG5cdFx0cmV0dXJuIG5ldyBEZWZhdWx0RGljdCggZGVmYXVsdF9mYWN0b3J5ICwgbWFwcGluZyApIDtcblxuXHR9IDtcblxuXHRkZWZhdWx0ZGljdC5mcm9ta2V5cyA9IERlZmF1bHREaWN0LmZyb21rZXlzIDtcblxuXHRyZXR1cm4gZGVmYXVsdGRpY3QgO1xuXG59XG4iXX0= \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 97e6ba9..0000000 --- a/lib/index.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports._DefaultDict = exports._defaultdict = exports.DefaultDict = exports.defaultdict = undefined; - -var _DefaultDict2 = require('./_DefaultDict'); - -var _DefaultDict3 = _interopRequireDefault(_DefaultDict2); - -var _defaultdict2 = require('./_defaultdict'); - -var _defaultdict3 = _interopRequireDefault(_defaultdict2); - -var _jsCollectionsDict = require('@aureooms/js-collections-dict'); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var DefaultDict = (0, _DefaultDict3.default)(_jsCollectionsDict.Dict, Map); // use native Map implementation -var defaultdict = (0, _defaultdict3.default)(DefaultDict); - -exports.default = defaultdict; -exports.defaultdict = defaultdict; -exports.DefaultDict = DefaultDict; -exports._defaultdict = _defaultdict3.default; -exports._DefaultDict = _DefaultDict3.default; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJEZWZhdWx0RGljdCIsIk1hcCIsImRlZmF1bHRkaWN0IiwiX2RlZmF1bHRkaWN0IiwiX0RlZmF1bHREaWN0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7Ozs7QUFDQTs7OztBQUVBOzs7O0FBRUEsSUFBTUEsY0FBYyxvREFBcUJDLEdBQXJCLENBQXBCLEMsQ0FBaUQ7QUFDakQsSUFBTUMsY0FBYywyQkFBY0YsV0FBZCxDQUFwQjs7a0JBRWVFLFc7UUFHZEEsVyxHQUFBQSxXO1FBQ0FGLFcsR0FBQUEsVztRQUNBRyxZO1FBQ0FDLFkiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgX0RlZmF1bHREaWN0IGZyb20gJy4vX0RlZmF1bHREaWN0JyA7XG5pbXBvcnQgX2RlZmF1bHRkaWN0IGZyb20gJy4vX2RlZmF1bHRkaWN0JyA7XG5cbmltcG9ydCB7IERpY3QgfSBmcm9tICdAYXVyZW9vbXMvanMtY29sbGVjdGlvbnMtZGljdCcgO1xuXG5jb25zdCBEZWZhdWx0RGljdCA9IF9EZWZhdWx0RGljdCggRGljdCAsIE1hcCApIDsgLy8gdXNlIG5hdGl2ZSBNYXAgaW1wbGVtZW50YXRpb25cbmNvbnN0IGRlZmF1bHRkaWN0ID0gX2RlZmF1bHRkaWN0KCBEZWZhdWx0RGljdCApIDtcblxuZXhwb3J0IGRlZmF1bHQgZGVmYXVsdGRpY3QgO1xuXG5leHBvcnQge1xuXHRkZWZhdWx0ZGljdCAsXG5cdERlZmF1bHREaWN0ICxcblx0X2RlZmF1bHRkaWN0ICxcblx0X0RlZmF1bHREaWN0ICxcbn0gO1xuIl19 \ No newline at end of file