@glimmer/resolver
Advanced tools
Comparing version 0.2.1 to 0.2.2
"use strict"; | ||
const build = require('@glimmer/build'); | ||
const buildVendorPackage = require('@glimmer/build/lib/build-vendor-package'); | ||
const funnel = require('broccoli-funnel'); | ||
const path = require('path'); | ||
@@ -10,3 +11,3 @@ let buildOptions = {}; | ||
buildOptions.vendorTrees = [ | ||
buildVendorPackage('@glimmer/di', { external: ['babel-helpers'] }) | ||
funnel(path.dirname(require.resolve('@glimmer/di/package')), { include: ['dist/amd/es5/**/*.js'] }) | ||
]; | ||
@@ -13,0 +14,0 @@ } |
@@ -1,2 +0,2 @@ | ||
define("@glimmer/resolver/module-registries/basic-registry", ["exports", "babel-helpers"], function (exports, _babelHelpers) { | ||
define("@glimmer/resolver/module-registries/basic-registry", ["exports"], function (exports) { | ||
"use strict"; | ||
@@ -7,4 +7,8 @@ | ||
}); | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var BasicRegistry = function () { | ||
@@ -14,3 +18,3 @@ function BasicRegistry() { | ||
(0, _babelHelpers.classCallCheck)(this, BasicRegistry); | ||
_classCallCheck(this, BasicRegistry); | ||
@@ -33,2 +37,2 @@ this._entries = entries; | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzaWMtcmVnaXN0cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvbW9kdWxlLXJlZ2lzdHJpZXMvYmFzaWMtcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7b0NBTUU7O2dCQUFZLDhFQUFxQixBQUFFOztvREFDakMsQUFBSTs7aUJBQUMsQUFBUSxXQUFHLEFBQU8sQUFBQyxBQUMxQixBQUFDOzs7Z0NBRUQsQUFBRyxtQkFBQyxBQUFpQixXQUNuQixBQUFNO21CQUF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QUk7O2lCQUFDLEFBQVEsV0FBRyxBQUFPLEFBQUMsQUFDMUIsQUFBQzs7O2dDQUVELEFBQUcsbUJBQUMsQUFBaUIsV0FDbkIsQUFBTTttQkFBQyxBQUFTLGFBQUksQUFBSSxLQUFDLEFBQVEsQUFBQyxBQUNwQyxBQUFDOzs7Z0NBRUQsQUFBRyxtQkFBQyxBQUFpQixXQUNuQixBQUFNO21CQUFDLEFBQUksS0FBQyxBQUFRLFNBQUMsQUFBUyxBQUFDLEFBQUMsQUFDbEMsQUFBQyxBQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTW9kdWxlUmVnaXN0cnkgfSBmcm9tICcuLi9tb2R1bGUtcmVnaXN0cnknO1xuaW1wb3J0IHsgRGljdCB9IGZyb20gJ0BnbGltbWVyL2RpJztcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgQmFzaWNSZWdpc3RyeSBpbXBsZW1lbnRzIE1vZHVsZVJlZ2lzdHJ5IHtcbiAgcHJpdmF0ZSBfZW50cmllczogRGljdDxhbnk+O1xuXG4gIGNvbnN0cnVjdG9yKGVudHJpZXM6IERpY3Q8YW55PiA9IHt9KSB7XG4gICAgdGhpcy5fZW50cmllcyA9IGVudHJpZXM7XG4gIH1cblxuICBoYXMoc3BlY2lmaWVyOiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICByZXR1cm4gc3BlY2lmaWVyIGluIHRoaXMuX2VudHJpZXM7XG4gIH1cblxuICBnZXQoc3BlY2lmaWVyOiBzdHJpbmcpOiBhbnkge1xuICAgIHJldHVybiB0aGlzLl9lbnRyaWVzW3NwZWNpZmllcl07XG4gIH1cbn1cbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
define('@glimmer/resolver/resolver', ['exports', 'babel-helpers', '@glimmer/di', '@glimmer/resolver/utils/debug'], function (exports, _babelHelpers, _di, _debug) { | ||
define('@glimmer/resolver/resolver', ['exports', '@glimmer/di', '@glimmer/resolver/utils/debug'], function (exports, _di, _debug) { | ||
'use strict'; | ||
@@ -7,7 +7,11 @@ | ||
}); | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var Resolver = function () { | ||
function Resolver(config, registry) { | ||
(0, _babelHelpers.classCallCheck)(this, Resolver); | ||
_classCallCheck(this, Resolver); | ||
@@ -115,2 +119,2 @@ this.config = config; | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzcmMvcmVzb2x2ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7K0JBZ0JFOzBCQUFZLEFBQTZCLFFBQUUsQUFBd0I7b0RBQ2pFLEFBQUk7O2lCQUFDLEFBQU0sU0FBRyxBQUFNLEFBQUMsQUFDckIsQUFBSTtpQkFBQyxBQUFRLFdBQUcsQUFBUSxBQUFDLEFBQzNCLEFBQUM7OzsyQkFFRCxBQUFRLDZCQUFDLEFBQWlCLFdBQUUsQUFBaUIsVUFDM0MsQUFBRSxBQUFDO2dCQUFDLEFBQXlCLG1DQUFDLEFBQVMsQUFBQyxBQUFDLFlBQUMsQUFBQyxBQUN6QyxBQUFNO3VCQUFDLEFBQVMsQUFBQyxBQUNuQixBQUFDO0FBRUQ7Z0JBQUksQUFBQyxJQUFHLEFBQW9CLDhCQUFDLEFBQVMsQUFBQyxBQUFDLEFBQ3hDO2dCQUFJLEFBQWMsQUFBQyxjQUVuQixBQUFFLEFBQUM7Z0JBQUMsQUFBUSxBQUFDLFVBQUMsQUFBQyxBQUNiO29CQUFJLEFBQUMsSUFBRyxBQUFvQiw4QkFBQyxBQUFRLEFBQUMsQUFBQyxBQUV2QyxBQUFFLEFBQUM7b0JBQUMsQUFBeUIsbUNBQUMsQUFBQyxBQUFDLEFBQUMsSUFBQyxBQU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hbGl6ZWQpKSB7XG4gICAgICByZXR1cm4gc2VyaWFsaXplZDtcbiAgICB9XG4gIH1cbn1cbiJdfQ== |
@@ -6,5 +6,8 @@ "use strict"; | ||
}); | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var _babelHelpers = require("babel-helpers"); | ||
var BasicRegistry = function () { | ||
@@ -14,3 +17,3 @@ function BasicRegistry() { | ||
(0, _babelHelpers.classCallCheck)(this, BasicRegistry); | ||
_classCallCheck(this, BasicRegistry); | ||
@@ -32,2 +35,2 @@ this._entries = entries; | ||
exports.default = BasicRegistry; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzaWMtcmVnaXN0cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvbW9kdWxlLXJlZ2lzdHJpZXMvYmFzaWMtcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBTUU7O1lBQVksOEVBQXFCLEFBQUU7O2dEQUNqQyxBQUFJOzthQUFDLEFBQVEsV0FBRyxBQUFPLEFBQUMsQUFDMUIsQUFBQzs7OzRCQUVELEFBQUcsbUJBQUMsQUFBaUIsV0FDbkIsQUFBTTtlQUFDLEFBQVMsYUFBSSxBQUFJLEtBQUMsQUFBUSxBQUFDLEFBQ3BDLEFBQUM7Ozs0QkFFRCxBQUFHLG1CQUFDLEFBQWlCLFdBQ25CLEFBQU07ZUFBQyxBQUFJLEtBQUMsQUFBUSxTQUFDLEFBQVMsQUFBQyxBQUFDLEFBQ2xDLEFBQUMsQUFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE1vZHVsZVJlZ2lzdHJ5IH0gZnJvbSAnLi4vbW9kdWxlLXJlZ2lzdHJ5JztcbmltcG9ydCB7IERpY3QgfSBmcm9tICd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250ZW50IjpbImltcG9ydCB7IE1vZHVsZVJlZ2lzdHJ5IH0gZnJvbSAnLi4vbW9kdWxlLXJlZ2lzdHJ5JztcbmltcG9ydCB7IERpY3QgfSBmcm9tICdAZ2xpbW1lci9kaSc7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIEJhc2ljUmVnaXN0cnkgaW1wbGVtZW50cyBNb2R1bGVSZWdpc3RyeSB7XG4gIHByaXZhdGUgX2VudHJpZXM6IERpY3Q8YW55PjtcblxuICBjb25zdHJ1Y3RvcihlbnRyaWVzOiBEaWN0PGFueT4gPSB7fSkge1xuICAgIHRoaXMuX2VudHJpZXMgPSBlbnRyaWVzO1xuICB9XG5cbiAgaGFzKHNwZWNpZmllcjogc3RyaW5nKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHNwZWNpZmllciBpbiB0aGlzLl9lbnRyaWVzO1xuICB9XG5cbiAgZ2V0KHNwZWNpZmllcjogc3RyaW5nKTogYW55IHtcbiAgICByZXR1cm4gdGhpcy5fZW50cmllc1tzcGVjaWZpZXJdO1xuICB9XG59XG4iXX0= |
@@ -7,4 +7,2 @@ 'use strict'; | ||
var _babelHelpers = require('babel-helpers'); | ||
var _di = require('@glimmer/di'); | ||
@@ -14,5 +12,11 @@ | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var Resolver = function () { | ||
function Resolver(config, registry) { | ||
(0, _babelHelpers.classCallCheck)(this, Resolver); | ||
_classCallCheck(this, Resolver); | ||
@@ -119,2 +123,2 @@ this.config = config; | ||
exports.default = Resolver; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzcmMvcmVzb2x2ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QU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ZXRyaWV2ZShzcGVjaWZpZXI6IHN0cmluZyk6IGFueSB7XG4gICAgcmV0dXJuIHRoaXMucmVnaXN0cnkuZ2V0KHNwZWNpZmllcik7XG4gIH1cblxuICByZXNvbHZlKHNwZWNpZmllcjogc3RyaW5nLCByZWZlcnJlcj86IHN0cmluZyk6IGFueSB7XG4gICAgbGV0IGlkID0gdGhpcy5pZGVudGlmeShzcGVjaWZpZXIsIHJlZmVycmVyKTtcbiAgICBpZiAoaWQpIHtcbiAgICAgIHJldHVybiB0aGlzLnJldHJpZXZlKGlkKTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIF9kZWZpbml0aXZlQ29sbGVjdGlvbih0eXBlOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIGxldCB0eXBlRGVmID0gdGhpcy5jb25maWcudHlwZXNbdHlwZV07XG4gICAgYXNzZXJ0KGAnJHt0eXBlfScgaXMgbm90IGEgcmVjb2duaXplZCB0eXBlYCwgdHlwZURlZik7XG4gICAgcmV0dXJuIHR5cGVEZWYuZGVmaW5pdGl2ZUNvbGxlY3Rpb247XG4gIH1cblxuICBwcml2YXRlIF9zZXJpYWxpemVBbmRWZXJpZnkoc3BlY2lmaWVyOiBTcGVjaWZpZXIpOiBzdHJpbmcge1xuICAgIGxldCBzZXJpYWxpemVkID0gc2VyaWFsaXplU3BlY2lmaWVyKHNwZWNpZmllcik7XG4gICAgaWYgKHRoaXMucmVnaXN0cnkuaGFzKHNlcmlhbGl6ZWQpKSB7XG4gICAgICByZXR1cm4gc2VyaWFsaXplZDtcbiAgICB9XG4gIH1cbn1cbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
import { classCallCheck as _classCallCheck } from "babel-helpers"; | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -3,0 +3,0 @@ var BasicRegistry = function () { |
@@ -1,2 +0,3 @@ | ||
import { classCallCheck as _classCallCheck } from 'babel-helpers'; | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
import { isSpecifierStringAbsolute, isSpecifierObjectAbsolute, deserializeSpecifier, serializeSpecifier } from '@glimmer/di'; | ||
@@ -109,2 +110,2 @@ import { assert } from './utils/debug'; | ||
export default Resolver; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzcmMvcmVzb2x2ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLEFBQU8sU0FHTCxBQUF5QiwyQkFDekIsQUFBeUIsMkJBQ3pCLEFBQW9CLHNCQUNwQixBQUFrQixBQUNuQiwwQkFBTSxBQUFhLEFBQUM7QUFDckIsQUFBTyxTQUFFLEFBQU0sQUFBRSxjQUFNLEFBQWUsQUFBQyxBQUl2QyxBQUFNLEFBQUMsQUFBTzs7O0FBSVosc0JBQVksQUFBNkIsUUFBRSxBQUF3Qjs7O0FBQ2pFLEFBQUksYUFBQyxBQUFNLFNBQUcsQUFBTSxBQUFDO0FBQ3JCLEFBQUksYUFBQyxBQUFRLFdBQUcsQUFBUSxBQUFDLEFBQzNCO0FBQUM7O3VCQUVELEFBQVEsNkJBQUMsQUFBaUIsV0FBRSxBQUFpQjtBQUMzQyxBQUFFLEFBQUMsWUFBQyxBQUF5QiwwQkFBQyxBQUFTLEFBQUMsQUFBQyxZQUFDLEFBQUM7QUFDekMsQUFBTSxtQkFBQyxBQUFTLEFBQUMsQUFDbkI7QUFBQztBQUVELFlBQUksQUFBQyxJQUFHLEFBQW9CLHFCQUFDLEFBQVMsQUFBQyxBQUFDO0FBQ3hDLFlBQUksQUFBYyxBQUFDO0FBRW5CLEFBQUUsQUFBQyxZQUFDLEFBQVEsQUFBQyxVQUFDLEFBQUM7QUFDYixnQkFBSSxBQUFDLElBQUcsQUFBb0IscUJBQUM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lY2lmaWVyKTtcbiAgICBpZiAodGhpcy5yZWdpc3RyeS5oYXMoc2VyaWFsaXplZCkpIHtcbiAgICAgIHJldHVybiBzZXJpYWxpemVkO1xuICAgIH1cbiAgfVxufVxuIl19 |
{ | ||
"name": "@glimmer/resolver", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Resolver for Glimmer apps.", | ||
@@ -26,6 +26,6 @@ "contributors": [ | ||
"dependencies": { | ||
"@glimmer/di": "^0.1.9" | ||
"@glimmer/di": "^0.1.11" | ||
}, | ||
"devDependencies": { | ||
"@glimmer/build": "^0.2.1", | ||
"@glimmer/build": "^0.5.0", | ||
"broccoli": "^1.1.0", | ||
@@ -32,0 +32,0 @@ "broccoli-cli": "^1.0.0", |
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
120757
980
Updated@glimmer/di@^0.1.11