@glimmer/opcode-compiler
Advanced tools
Comparing version 0.76.0 to 0.77.0
@@ -162,2 +162,2 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL29wY29kZS1jb21waWxlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFFQTs7QUFFQTs7QUFFQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFFQTs7QUFJQTs7QUFDQTs7QUFFQTs7QUFFQTs7QUFFQTs7QUFPQTs7QUFF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tTIH0gZnJvbSAnLi9saWIvdXRpbHMnO1xuIl0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -15,2 +15,3 @@ "use strict"; | ||
let clientId = 0; | ||
let templateCacheCounters = { | ||
@@ -29,2 +30,3 @@ cacheHit: 0, | ||
function templateFactory({ | ||
id: templateId, | ||
moduleName, | ||
@@ -35,5 +37,8 @@ block, | ||
}) { | ||
// TODO: This caches JSON serialized output once in case a template is | ||
// TODO(template-refactors): This should be removed in the near future, as it | ||
// appears that id is unused. It is currently kept for backwards compat reasons. | ||
let id = templateId || `client-${clientId++}`; // TODO: This caches JSON serialized output once in case a template is | ||
// compiled by multiple owners, but we haven't verified if this is actually | ||
// helpful. We should benchmark this in the future. | ||
let parsedBlock; | ||
@@ -52,2 +57,3 @@ let ownerlessTemplate = null; | ||
ownerlessTemplate = new TemplateImpl({ | ||
id, | ||
block: parsedBlock, | ||
@@ -71,2 +77,3 @@ moduleName, | ||
result = new TemplateImpl({ | ||
id, | ||
block: parsedBlock, | ||
@@ -86,2 +93,3 @@ moduleName, | ||
factory.__id = id; | ||
factory.__meta = { | ||
@@ -104,2 +112,6 @@ moduleName | ||
return this.parsedLayout.moduleName; | ||
} | ||
get id() { | ||
return this.parsedLayout.id; | ||
} // TODO(template-refactors): This should be removed in the near future, it is | ||
@@ -138,2 +150,2 @@ // only being exposed for backwards compatibility | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL29wY29kZS1jb21waWxlci9saWIvdGVtcGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFXQTs7QUFDQTs7QUFDQTs7QUFFTyxJQUFJLHFCQUFxQixHQUFHO0FBQ2pDLEVBQUEsUUFBUSxFQUR5QixDQUFBO0FBRWpDLEVBQUEsU0FBUyxFQUFFO0FBRnNCLENBQTVCO0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SksXG4gICAgICB0aGlzLm1vZHVsZU5hbWVcbiAgICApKTtcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -162,2 +162,2 @@ "use strict"; | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL29wY29kZS1jb21waWxlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFFQTs7QUFFQTs7QUFFQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFFQTs7QUFJQTs7QUFD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cG9uZW50JztcblxuZXhwb3J0IHsgRU1QVFlfQkxPQ0tTIH0gZnJvbSAnLi9saWIvdXRpbHMnO1xuIl0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -31,2 +31,3 @@ "use strict"; | ||
var clientId = 0; | ||
var templateCacheCounters = { | ||
@@ -45,6 +46,10 @@ cacheHit: 0, | ||
function templateFactory(_ref) { | ||
var moduleName = _ref.moduleName, | ||
var templateId = _ref.id, | ||
moduleName = _ref.moduleName, | ||
block = _ref.block, | ||
scope = _ref.scope, | ||
isStrictMode = _ref.isStrictMode; // TODO: This caches JSON serialized output once in case a template is | ||
isStrictMode = _ref.isStrictMode; // TODO(template-refactors): This should be removed in the near future, as it | ||
// appears that id is unused. It is currently kept for backwards compat reasons. | ||
var id = templateId || "client-" + clientId++; // TODO: This caches JSON serialized output once in case a template is | ||
// compiled by multiple owners, but we haven't verified if this is actually | ||
@@ -66,2 +71,3 @@ // helpful. We should benchmark this in the future. | ||
ownerlessTemplate = new TemplateImpl({ | ||
id: id, | ||
block: parsedBlock, | ||
@@ -85,2 +91,3 @@ moduleName: moduleName, | ||
result = new TemplateImpl({ | ||
id: id, | ||
block: parsedBlock, | ||
@@ -100,2 +107,3 @@ moduleName: moduleName, | ||
factory.__id = id; | ||
factory.__meta = { | ||
@@ -143,2 +151,7 @@ moduleName: moduleName | ||
return this.parsedLayout.moduleName; | ||
} | ||
}, { | ||
key: "id", | ||
get: function get() { | ||
return this.parsedLayout.id; | ||
} // TODO(template-refactors): This should be removed in the near future, it is | ||
@@ -159,2 +172,2 @@ // only being exposed for backwards compatibility | ||
}(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL29wY29kZS1jb21waWxlci9saWIvdGVtcGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFXQTs7QUFDQ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YWJsZShcbiAgICAgIGFzc2lnbih7fSwgdGhpcy5wYXJzZWRMYXlvdXQsIHtcbiAgICAgICAgYXNQYXJ0aWFsOiBmYWxzZSxcbiAgICAgIH0pLFxuICAgICAgdGhpcy5tb2R1bGVOYW1lXG4gICAgKSk7XG4gIH1cblxuICBhc1BhcnRpYWwoKTogQ29tcGlsYWJsZVByb2dyYW0ge1xuICAgIGlmICh0aGlzLnBhcnRpYWwpIHJldHVybiB0aGlzLnBhcnRpYWw7XG4gICAgcmV0dXJuICh0aGlzLnBhcnRpYWwgPSBjb21waWxhYmxlKFxuICAgICAgYXNzaWduKHt9LCB0aGlzLnBhcnNlZExheW91dCwge1xuICAgICAgICBhc1BhcnRpYWw6IHRydWUsXG4gICAgICB9KSxcbiAgICAgIHRoaXMubW9kdWxlTmFtZVxuICAgICkpO1xuICB9XG5cbiAgYXNXcmFwcGVkTGF5b3V0KCk6IENvbXBpbGFibGVQcm9ncmFtIHtcbiAgICBpZiAodGhpcy53cmFwcGVkTGF5b3V0KSByZXR1cm4gdGhpcy53cmFwcGVkTGF5b3V0O1xuICAgIHJldHVybiAodGhpcy53cmFwcGVkTGF5b3V0ID0gbmV3IFdyYXBwZWRCdWlsZGVyKFxuICAgICAgYXNzaWduKHt9LCB0aGlzLnBhcnNlZExheW91dCwge1xuICAgICAgICBhc1BhcnRpYWw6IGZhbHNlLFxuICAgICAgfSksXG4gICAgICB0aGlzLm1vZHVsZU5hbWVcbiAgICApKTtcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL29wY29kZS1jb21waWxlci9saWIvdGVtcGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFXQTs7QUFDQTs7QUFDQTs7Ozs7Ozs7Ozs7Ozs7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ICBhc1BhcnRpYWwoKTogQ29tcGlsYWJsZVByb2dyYW0ge1xuICAgIGlmICh0aGlzLnBhcnRpYWwpIHJldHVybiB0aGlzLnBhcnRpYWw7XG4gICAgcmV0dXJuICh0aGlzLnBhcnRpYWwgPSBjb21waWxhYmxlKFxuICAgICAgYXNzaWduKHt9LCB0aGlzLnBhcnNlZExheW91dCwge1xuICAgICAgICBhc1BhcnRpYWw6IHRydWUsXG4gICAgICB9KSxcbiAgICAgIHRoaXMubW9kdWxlTmFtZVxuICAgICkpO1xuICB9XG5cbiAgYXNXcmFwcGVkTGF5b3V0KCk6IENvbXBpbGFibGVQcm9ncmFtIHtcbiAgICBpZiAodGhpcy53cmFwcGVkTGF5b3V0KSByZXR1cm4gdGhpcy53cmFwcGVkTGF5b3V0O1xuICAgIHJldHVybiAodGhpcy53cmFwcGVkTGF5b3V0ID0gbmV3IFdyYXBwZWRCdWlsZGVyKFxuICAgICAgYXNzaWduKHt9LCB0aGlzLnBhcnNlZExheW91dCwge1xuICAgICAgICBhc1BhcnRpYWw6IGZhbHNlLFxuICAgICAgfSksXG4gICAgICB0aGlzLm1vZHVsZU5hbWVcbiAgICApKTtcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -14,2 +14,2 @@ export * from './lib/program-context'; | ||
export { EMPTY_BLOCKS } from './lib/utils'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL29wY29kZS1jb21waWxlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUFkO0FBRUEsU0FBUyxhQUFULFFBQThCLGdCQUE5QjtBQUVBLFNBQVMsaUJBQVQsRUFBNEIsVUFBNUIsUUFBOEMsMkJBQTlDO0FBRUEsY0FBYyw4QkFBZDtBQUNBLGNBQWMsK0JBQWQ7QUFFQSxTQUNF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IHsgUGFydGlhbERlZmluaXRpb25JbXBsIH0gZnJvbSAnLi9saWIvcGFydGlhbC10ZW1wbGF0ZSc7XG5cbmV4cG9ydCB7XG4gIGRlZmF1bHQgYXMgdGVtcGxhdGVGYWN0b3J5LFxuICB0ZW1wbGF0ZUNhY2hlQ291bnRlcnMsXG4gIFRlbXBsYXRlRmFjdG9yeVdpdGhJZEFuZE1ldGEsXG4gIFRlbXBsYXRlV2l0aElkQW5kUmVmZXJyZXIsXG59IGZyb20gJy4vbGliL3RlbXBsYXRlJztcblxuZXhwb3J0IHsgV3JhcHBlZEJ1aWxkZXIgfSBmcm9tICcuL2xpYi93cmFwcGVkLWNvbXBvbmVudCc7XG5cbmV4cG9ydCB7IEVNUFRZX0JMT0NLUyB9IGZyb20gJy4vbGliL3V0aWxzJztcbiJdLCJzb3VyY2VSb290IjoiIn0= |
import { assign } from '@glimmer/util'; | ||
import { compilable } from './compilable-template'; | ||
import { WrappedBuilder } from './wrapped-component'; | ||
let clientId = 0; | ||
export let templateCacheCounters = { | ||
@@ -15,2 +16,3 @@ cacheHit: 0, | ||
export default function templateFactory({ | ||
id: templateId, | ||
moduleName, | ||
@@ -21,5 +23,8 @@ block, | ||
}) { | ||
// TODO: This caches JSON serialized output once in case a template is | ||
// TODO(template-refactors): This should be removed in the near future, as it | ||
// appears that id is unused. It is currently kept for backwards compat reasons. | ||
let id = templateId || `client-${clientId++}`; // TODO: This caches JSON serialized output once in case a template is | ||
// compiled by multiple owners, but we haven't verified if this is actually | ||
// helpful. We should benchmark this in the future. | ||
let parsedBlock; | ||
@@ -38,2 +43,3 @@ let ownerlessTemplate = null; | ||
ownerlessTemplate = new TemplateImpl({ | ||
id, | ||
block: parsedBlock, | ||
@@ -57,2 +63,3 @@ moduleName, | ||
result = new TemplateImpl({ | ||
id, | ||
block: parsedBlock, | ||
@@ -72,2 +79,3 @@ moduleName, | ||
factory.__id = id; | ||
factory.__meta = { | ||
@@ -90,2 +98,6 @@ moduleName | ||
return this.parsedLayout.moduleName; | ||
} | ||
get id() { | ||
return this.parsedLayout.id; | ||
} // TODO(template-refactors): This should be removed in the near future, it is | ||
@@ -124,2 +136,2 @@ // only being exposed for backwards compatibility | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL29wY29kZS1jb21waWxlci9saWIvdGVtcGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV0EsU0FBUyxNQUFULFFBQXVCLGVBQXZCO0FBQ0EsU0FBUyxVQUFULFFBQTJCLHVCQUEzQjtBQUNBLFNBQVMsY0FBVCxRQUErQixxQkFBL0I7QUFFQSxPQUFPLElBQUkscUJBQXFCLEdBQUc7QUFDakMsRUFBQSxRQUFRLEVBQUUsQ0FEdUI7QUFFakMsRUFBQSxTQUFTLEVBQUU7QUFGc0IsQ0FBNUI7QUFpQlA7Ozs7OztBQUtBLGVBQWMsU0FBVSxlQUFWLENBQTBCO0FBQ3RDLEVBQUEsVUFEc0M7QUFFdEMsRUFBQSxLQUZzQztBQUd0QyxFQUFBLEtBSHNDO0FBSXRDLEVBQUE7QUFKc0MsQ0FBMUIsRUFLb0I7QUFDaEM7QUFDQTtBQUNBO0FBQ0EsTUFBSSxXQUFKO0FBRUEsTUFBSSxpQkFBaUIsR0FBb0IsSUFBekM7QUFDQSxNQUFJLGFBQWEsR0FBRyxJQUFJLE9BQUosRUFBcEI7O0FBRUEsTUFBSSxPQUFPLEdBQTZCLEtBQUQsSUFBa0I7QUFDdkQsUUFBSSxXQUFXLEtBQUssU0FBcEIsRUFBK0I7QUFDN0IsTUFBQSxXQUFXLEdBQUcsSUFBSSxDQUFDLEtBQUwsQ0FBVyxLQUFYLENBQWQ7QUFDRDs7QUFFRCxRQUFJLEtBQUssS0FBSyxTQUFkLEVBQXlCO0FBQ3ZCLFVBQUksaUJBQWlCLEtBQUssSUFBMU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vZHVsZU5hbWUsXG4gICAgICBvd25lcjogdGhpcy5wYXJzZWRMYXlvdXQub3duZXIsXG4gICAgfTtcbiAgfVxuXG4gIGFzTGF5b3V0KCk6IENvbXBpbGFibGVQcm9ncmFtIHtcbiAgICBpZiAodGhpcy5sYXlvdXQpIHJldHVybiB0aGlzLmxheW91dDtcbiAgICByZXR1cm4gKHRoaXMubGF5b3V0ID0gY29tcGlsYWJsZShcbiAgICAgIGFzc2lnbih7fSwgdGhpcy5wYXJzZWRMYXlvdXQsIHtcbiAgICAgICAgYXNQYXJ0aWFsOiBmYWxzZSxcbiAgICAgIH0pLFxuICAgICAgdGhpcy5tb2R1bGVOYW1lXG4gICAgKSk7XG4gIH1cblxuICBhc1BhcnRpYWwoKTogQ29tcGlsYWJsZVByb2dyYW0ge1xuICAgIGlmICh0aGlzLnBhcnRpYWwpIHJldHVybiB0aGlzLnBhcnRpYWw7XG4gICAgcmV0dXJuICh0aGlzLnBhcnRpYWwgPSBjb21waWxhYmxlKFxuICAgICAgYXNzaWduKHt9LCB0aGlzLnBhcnNlZExheW91dCwge1xuICAgICAgICBhc1BhcnRpYWw6IHRydWUsXG4gICAgICB9KSxcbiAgICAgIHRoaXMubW9kdWxlTmFtZVxuICAgICkpO1xuICB9XG5cbiAgYXNXcmFwcGVkTGF5b3V0KCk6IENvbXBpbGFibGVQcm9ncmFtIHtcbiAgICBpZiAodGhpcy53cmFwcGVkTGF5b3V0KSByZXR1cm4gdGhpcy53cmFwcGVkTGF5b3V0O1xuICAgIHJldHVybiAodGhpcy53cmFwcGVkTGF5b3V0ID0gbmV3IFdyYXBwZWRCdWlsZGVyKFxuICAgICAgYXNzaWduKHt9LCB0aGlzLnBhcnNlZExheW91dCwge1xuICAgICAgICBhc1BhcnRpYWw6IGZhbHNlLFxuICAgICAgfSksXG4gICAgICB0aGlzLm1vZHVsZU5hbWVcbiAgICApKTtcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== | ||
//# sourceMappingURL=data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SksXG4gICAgICB0aGlzLm1vZHVsZU5hbWVcbiAgICApKTtcbiAgfVxuXG4gIGFzUGFydGlhbCgpOiBDb21waWxhYmxlUHJvZ3JhbSB7XG4gICAgaWYgKHRoaXMucGFydGlhbCkgcmV0dXJuIHRoaXMucGFydGlhbDtcbiAgICByZXR1cm4gKHRoaXMucGFydGlhbCA9IGNvbXBpbGFibGUoXG4gICAgICBhc3NpZ24oe30sIHRoaXMucGFyc2VkTGF5b3V0LCB7XG4gICAgICAgIGFzUGFydGlhbDogdHJ1ZSxcbiAgICAgIH0pLFxuICAgICAgdGhpcy5tb2R1bGVOYW1lXG4gICAgKSk7XG4gIH1cblxuICBhc1dyYXBwZWRMYXlvdXQoKTogQ29tcGlsYWJsZVByb2dyYW0ge1xuICAgIGlmICh0aGlzLndyYXBwZWRMYXlvdXQpIHJldHVybiB0aGlzLndyYXBwZWRMYXlvdXQ7XG4gICAgcmV0dXJuICh0aGlzLndyYXBwZWRMYXlvdXQgPSBuZXcgV3JhcHBlZEJ1aWxkZXIoXG4gICAgICBhc3NpZ24oe30sIHRoaXMucGFyc2VkTGF5b3V0LCB7XG4gICAgICAgIGFzUGFydGlhbDogZmFsc2UsXG4gICAgICB9KSxcbiAgICAgIHRoaXMubW9kdWxlTmFtZVxuICAgICkpO1xuICB9XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 |
@@ -14,2 +14,2 @@ export * from './lib/program-context'; | ||
export { EMPTY_BLOCKS } from './lib/utils'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL29wY29kZS1jb21waWxlci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFBLHVCQUFBO0FBRUEsU0FBQSxhQUFBLFFBQUEsZ0JBQUE7QUFFQSxTQUFBLGlCQUFBLEVBQUEsVUFBQSxRQUFBLDJCQUFBO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aWxkZXIvc3RkbGliJztcblxuZXhwb3J0IHsgUGFydGlhbERlZmluaXRpb25JbXBsIH0gZnJvbSAnLi9saWIvcGFydGlhbC10ZW1wbGF0ZSc7XG5cbmV4cG9ydCB7XG4gIGRlZmF1bHQgYXMgdGVtcGxhdGVGYWN0b3J5LFxuICB0ZW1wbGF0ZUNhY2hlQ291bnRlcnMsXG4gIFRlbXBsYXRlRmFjdG9yeVdpdGhJZEFuZE1ldGEsXG4gIFRlbXBsYXRlV2l0aElkQW5kUmVmZXJyZXIsXG59IGZyb20gJy4vbGliL3RlbXBsYXRlJztcblxuZXhwb3J0IHsgV3JhcHBlZEJ1aWxkZXIgfSBmcm9tICcuL2xpYi93cmFwcGVkLWNvbXBvbmVudCc7XG5cbmV4cG9ydCB7IEVNUFRZX0JMT0NLUyB9IGZyb20gJy4vbGliL3V0aWxzJztcbiJdLCJzb3VyY2VSb290IjoiIn0= |
@@ -8,2 +8,3 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } | ||
import { WrappedBuilder } from './wrapped-component'; | ||
var clientId = 0; | ||
export var templateCacheCounters = { | ||
@@ -20,9 +21,13 @@ cacheHit: 0, | ||
export default function templateFactory(_ref) { | ||
var moduleName = _ref.moduleName, | ||
var templateId = _ref.id, | ||
moduleName = _ref.moduleName, | ||
block = _ref.block, | ||
scope = _ref.scope, | ||
isStrictMode = _ref.isStrictMode; | ||
// TODO: This caches JSON serialized output once in case a template is | ||
// TODO(template-refactors): This should be removed in the near future, as it | ||
// appears that id is unused. It is currently kept for backwards compat reasons. | ||
var id = templateId || "client-" + clientId++; // TODO: This caches JSON serialized output once in case a template is | ||
// compiled by multiple owners, but we haven't verified if this is actually | ||
// helpful. We should benchmark this in the future. | ||
var parsedBlock; | ||
@@ -41,2 +46,3 @@ var ownerlessTemplate = null; | ||
ownerlessTemplate = new TemplateImpl({ | ||
id: id, | ||
block: parsedBlock, | ||
@@ -60,2 +66,3 @@ moduleName: moduleName, | ||
result = new TemplateImpl({ | ||
id: id, | ||
block: parsedBlock, | ||
@@ -75,2 +82,3 @@ moduleName: moduleName, | ||
factory.__id = id; | ||
factory.__meta = { | ||
@@ -118,2 +126,7 @@ moduleName: moduleName | ||
return this.parsedLayout.moduleName; | ||
} | ||
}, { | ||
key: "id", | ||
get: function get() { | ||
return this.parsedLayout.id; | ||
} // TODO(template-refactors): This should be removed in the near future, it is | ||
@@ -134,2 +147,2 @@ // only being exposed for backwards compatibility | ||
}(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL29wY29kZS1jb21waWxlci9saWIvdGVtcGxhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQVdBLFNBQUEsTUFBQSxRQUFBLGVBQUE7QUFDQSxTQUFBLFVBQUEsUUFBQSx1QkFBQTtBQUNBLFNBQUEsY0FBQSxRQUFBLHFCQUFBO0FBRUEsT0FBTyxJQUFJLHFCQUFxQixHQUFHO0FBQ2pDLEVBQUEsUUFBUSxFQUR5QixDQUFBO0FBRWpDLEVBQUEsU0FBUyxFQUFFO0FBRnNCLENBQTVCO0FBaUJQOzs7Ozs7QUFLQSxlQUFjLFNBQUEsZUFBQSxPQUtvQjtBQUFBLE1BTE0sVUFLTixRQUxNLFVBS047QUFBQSxNQUxNLEtBS04sUUFMTSxLQUtOO0FBQUEsTUFMTSxLQUtOLFFBTE0sS0FLTjtBQUFBLE1BRGhDLFlBQ2dDLFFBRGhDLFlBQ2dDO0FBQ2hDO0FBQ0E7QUFDQTtBQUNBLE1BQUEsV0FBQTtBQUVBLE1BQUksaUJBQWlCLEdBQXJCLElBQUE7QUFDQSxNQUFJLGFBQWEsR0FBRyxJQUFwQ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5b3V0LCB7XG4gICAgICAgIGFzUGFydGlhbDogZmFsc2UsXG4gICAgICB9KSxcbiAgICAgIHRoaXMubW9kdWxlTmFtZVxuICAgICkpO1xuICB9XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 |
@@ -11,5 +11,5 @@ export * from './lib/program-context'; | ||
export { PartialDefinitionImpl } from './lib/partial-template'; | ||
export { default as templateFactory, templateCacheCounters, TemplateFactoryWithMeta, TemplateWithReferrer, } from './lib/template'; | ||
export { default as templateFactory, templateCacheCounters, TemplateFactoryWithIdAndMeta, TemplateWithIdAndReferrer, } from './lib/template'; | ||
export { WrappedBuilder } from './lib/wrapped-component'; | ||
export { EMPTY_BLOCKS } from './lib/utils'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,3 +6,4 @@ import { Owner, SerializedTemplateWithLazyBlock, TemplateFactory, TemplateOk } from '@glimmer/interfaces'; | ||
}; | ||
export interface TemplateFactoryWithMeta extends TemplateFactory { | ||
export interface TemplateFactoryWithIdAndMeta extends TemplateFactory { | ||
__id?: string; | ||
__meta?: { | ||
@@ -12,3 +13,4 @@ moduleName: string; | ||
} | ||
export interface TemplateWithReferrer extends TemplateOk { | ||
export interface TemplateWithIdAndReferrer extends TemplateOk { | ||
id: string; | ||
referrer: { | ||
@@ -24,3 +26,3 @@ moduleName: string; | ||
*/ | ||
export default function templateFactory({ moduleName, block, scope, isStrictMode, }: SerializedTemplateWithLazyBlock): TemplateFactory; | ||
export default function templateFactory({ id: templateId, moduleName, block, scope, isStrictMode, }: SerializedTemplateWithLazyBlock): TemplateFactory; | ||
//# sourceMappingURL=template.d.ts.map |
{ | ||
"name": "@glimmer/opcode-compiler", | ||
"version": "0.76.0", | ||
"version": "0.77.0", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/opcode-compiler", | ||
"dependencies": { | ||
"@glimmer/env": "0.1.7", | ||
"@glimmer/util": "0.76.0", | ||
"@glimmer/wire-format": "0.76.0", | ||
"@glimmer/interfaces": "0.76.0", | ||
"@glimmer/vm": "0.76.0", | ||
"@glimmer/encoder": "0.76.0", | ||
"@glimmer/reference": "0.76.0" | ||
"@glimmer/util": "0.77.0", | ||
"@glimmer/wire-format": "0.77.0", | ||
"@glimmer/interfaces": "0.77.0", | ||
"@glimmer/vm": "0.77.0", | ||
"@glimmer/encoder": "0.77.0", | ||
"@glimmer/reference": "0.77.0" | ||
}, | ||
"devDependencies": { | ||
"@glimmer/debug": "0.76.0", | ||
"@glimmer/local-debug-flags": "0.76.0" | ||
"@glimmer/debug": "0.77.0", | ||
"@glimmer/local-debug-flags": "0.77.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "main": "dist/commonjs/es2017/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1639785
17022
+ Added@glimmer/encoder@0.77.0(transitive)
+ Added@glimmer/global-context@0.77.0(transitive)
+ Added@glimmer/interfaces@0.77.0(transitive)
+ Added@glimmer/reference@0.77.0(transitive)
+ Added@glimmer/util@0.77.0(transitive)
+ Added@glimmer/validator@0.77.0(transitive)
+ Added@glimmer/vm@0.77.0(transitive)
+ Added@glimmer/wire-format@0.77.0(transitive)
- Removed@glimmer/encoder@0.76.0(transitive)
- Removed@glimmer/global-context@0.76.0(transitive)
- Removed@glimmer/interfaces@0.76.0(transitive)
- Removed@glimmer/reference@0.76.0(transitive)
- Removed@glimmer/util@0.76.0(transitive)
- Removed@glimmer/validator@0.76.0(transitive)
- Removed@glimmer/vm@0.76.0(transitive)
- Removed@glimmer/wire-format@0.76.0(transitive)
Updated@glimmer/encoder@0.77.0
Updated@glimmer/interfaces@0.77.0
Updated@glimmer/reference@0.77.0
Updated@glimmer/util@0.77.0
Updated@glimmer/vm@0.77.0
Updated@glimmer/wire-format@0.77.0