@glimmer/opcode-compiler
Advanced tools
Comparing version 0.29.2 to 0.29.3
@@ -18,10 +18,2 @@ 'use strict'; | ||
let { constants } = program; | ||
// console is not available in IE9 | ||
if (typeof console === 'undefined') { | ||
return; | ||
} | ||
// IE10 does not have `console.group` | ||
if (typeof console.group !== 'function') { | ||
return; | ||
} | ||
console.group(`%c${start}:${end}`, 'color: #999'); | ||
@@ -146,2 +138,2 @@ let _size = 0; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci9vcGNvZGUtY29tcGlsZXIvbGliL2RlYnVnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQVFBLEFBQU8sQUFBRSxBQUFRLEFBQU0sQUFBUSxBQUFFLEFBQU0sQUFBYSxBQUFDLEFBQ3JELEFBQU8sQUFBRSxBQUFLLEFBQUUsQUFBTSxBQUE0QixBQUFDOztBQUNuRCxBQUFPLEFBQUUsQUFBVyxBQUFFLEFBQUksQUFBRSxBQUFNLEFBQWUsQUFBQyxBQW1CbEQsQUFBTTs7b0JBQXFCLEFBQTJCLFNBQUUsQUFBYSxPQUFFLEFBQVcsS0FDaEYsQUFBRSxBQUFDLEFBQUMsQUFBSyxBQUFDO2VBQUMsQUFBQyxBQUNWLEFBQStCO0FBQy9CO1lBQUksRUFBRSxBQUFTLEFBQUUsY0FBRyxBQUFPLEFBQUMsQUFFNUIsQUFBa0M7QUFDbEMsQUFBRSxBQUFDO1lBQUMsT0FBTyxBQUFPLFlBQUssQUFBVyxBQUFDLGFBQUMsQUFBQyxBQUFDLEFBQU0sQUFBQyxBQUFDO0FBQUM7QUFFL0MsQUFBcUM7QUFDckMsQUFBRSxBQUFDO1lBQUMsT0FBTyxBQUFPLFFBQUMsQUFBSyxVQUFLL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F07XG5cbiAgICBzd2l0Y2ggKG9wZXJhbmQudHlwZSkge1xuICAgICAgY2FzZSAnaTMyJzpcbiAgICAgIGNhc2UgJ3N5bWJvbCc6XG4gICAgICBjYXNlICdibG9jayc6XG4gICAgICAgIG91dFtvcGVyYW5kLm5hbWVdID0gb3A7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAnaGFuZGxlJzpcbiAgICAgICAgb3V0W29wZXJhbmQubmFtZV0gPSBjLnJlc29sdmVIYW5kbGUob3ApO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3N0cic6XG4gICAgICAgIG91dFtvcGVyYW5kLm5hbWVdID0gYy5nZXRTdHJpbmcob3ApO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ29wdGlvbi1zdHInOlxuICAgICAgICBvdXRbb3BlcmFuZC5uYW1lXSA9IG9wID8gYy5nZXRTdHJpbmcob3ApIDogbnVsbDtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdzdHItYXJyYXknOlxuICAgICAgICBvdXRbb3BlcmFuZC5uYW1lXSA9IGMuZ2V0U3RyaW5nQXJyYXkob3ApO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2FycmF5JzpcbiAgICAgICAgb3V0W29wZXJhbmQubmFtZV0gPSBjLmdldEFycmF5KG9wKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdib29sJzpcbiAgICAgICAgb3V0W29wZXJhbmQubmFtZV0gPSAhIW9wO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3ByaW1pdGl2ZSc6XG4gICAgICAgIG91dFtvcGVyYW5kLm5hbWVdID0gZGVjb2RlUHJpbWl0aXZlKG9wLCBjKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdyZWdpc3Rlcic6XG4gICAgICAgIG91dFtvcGVyYW5kLm5hbWVdID0gUmVnaXN0ZXJbb3BdO1xuICAgICAgICBicmVhaztcbiAgICAgIGNh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VybiBmYWxzZTtcbiAgICAgICAgY2FzZSAxOiByZXR1cm4gdHJ1ZTtcbiAgICAgICAgY2FzZSAyOiByZXR1cm4gbnVsbDtcbiAgICAgICAgY2FzZSAzOiByZXR1cm4gdW5kZWZpbmVkO1xuICAgICAgfVxuICAgIGNhc2UgUHJpbWl0aXZlVHlwZS5ORUdBVElWRTpcbiAgICAgIHJldHVybiBjb25zdGFudHMuZ2V0TmVnYXRpdmUodmFsdWUpO1xuICAgIGRlZmF1bHQ6XG4gICAgICB0aHJvdyB1bnJlYWNoYWJsZSgpO1xuICB9XG59XG4iXX0= |
@@ -18,11 +18,3 @@ 'use strict'; | ||
var constants = program.constants; | ||
// console is not available in IE9 | ||
if (typeof console === 'undefined') { | ||
return; | ||
} | ||
// IE10 does not have `console.group` | ||
if (typeof console.group !== 'function') { | ||
return; | ||
} | ||
console.group('%c' + start + ':' + end, 'color: #999'); | ||
@@ -162,2 +154,2 @@ var _size = 0; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci9vcGNvZGUtY29tcGlsZXIvbGliL2RlYnVnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQVFBLEFBQU8sQUFBRSxBQUFRLEFBQU0sQUFBUSxBQUFFLEFBQU0sQUFBYSxBQUFDLEFBQ3JELEFBQU8sQUFBRSxBQUFLLEFBQUUsQUFBTSxBQUE0QixBQUFDOztBQUNuRCxBQUFPLEFBQUUsQUFBVyxBQUFFLEFBQUksQUFBRSxBQUFNLEFBQWUsQUFBQyxBQW1CbEQsQUFBTTs7b0JBQXFCLEFBQTJCLFNBQUUsQUFBYSxPQUFFLEFBQVcsS0FDaEYsQUFBRSxBQUFDLEFBQUMsQUFBSyxBQUFDO2VBRVIsQU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ChmbGFnKSB7XG4gICAgY2FzZSBQcmltaXRpdmVUeXBlLk5VTUJFUjpcbiAgICAgIHJldHVybiB2YWx1ZTtcbiAgICBjYXNlIFByaW1pdGl2ZVR5cGUuRkxPQVQ6XG4gICAgICByZXR1cm4gY29uc3RhbnRzLmdldEZsb2F0KHZhbHVlKTtcbiAgICBjYXNlIFByaW1pdGl2ZVR5cGUuU1RSSU5HOlxuICAgICAgcmV0dXJuIGNvbnN0YW50cy5nZXRTdHJpbmcodmFsdWUpO1xuICAgIGNhc2UgUHJpbWl0aXZlVHlwZS5CT09MRUFOX09SX1ZPSUQ6XG4gICAgICBzd2l0Y2ggKHZhbHVlKSB7XG4gICAgICAgIGNhc2UgMDogcmV0dXJuIGZhbHNlO1xuICAgICAgICBjYXNlIDE6IHJldHVybiB0cnVlO1xuICAgICAgICBjYXNlIDI6IHJldHVybiBudWxsO1xuICAgICAgICBjYXNlIDM6IHJldHVybiB1bmRlZmluZWQ7XG4gICAgICB9XG4gICAgY2FzZSBQcmltaXRpdmVUeXBlLk5FR0FUSVZFOlxuICAgICAgcmV0dXJuIGNvbnN0YW50cy5nZXROZWdhdGl2ZSh2YWx1ZSk7XG4gICAgZGVmYXVsdDpcbiAgICAgIHRocm93IHVucmVhY2hhYmxlKCk7XG4gIH1cbn1cbiJdfQ== |
@@ -8,10 +8,2 @@ import { Register } from '@glimmer/vm'; | ||
let { constants } = program; | ||
// console is not available in IE9 | ||
if (typeof console === 'undefined') { | ||
return; | ||
} | ||
// IE10 does not have `console.group` | ||
if (typeof console.group !== 'function') { | ||
return; | ||
} | ||
console.group(`%c${start}:${end}`, 'color: #999'); | ||
@@ -136,2 +128,2 @@ let _size = 0; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci9vcGNvZ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1lLCBvdXRdO1xufVxuXG5mdW5jdGlvbiBkZWNvZGVQcmltaXRpdmUocHJpbWl0aXZlOiBudW1iZXIsIGNvbnN0YW50czogRGVidWdDb25zdGFudHMpOiBQcmltaXRpdmUge1xuICBsZXQgZmxhZyA9IHByaW1pdGl2ZSAmIDc7IC8vIDExMVxuICBsZXQgdmFsdWUgPSBwcmltaXRpdmUgPj4gMztcblxuICBzd2l0Y2ggKGZsYWcpIHtcbiAgICBjYXNlIFByaW1pdGl2ZVR5cGUuTlVNQkVSOlxuICAgICAgcmV0dXJuIHZhbHVlO1xuICAgIGNhc2UgUHJpbWl0aXZlVHlwZS5GTE9BVDpcbiAgICAgIHJldHVybiBjb25zdGFudHMuZ2V0RmxvYXQodmFsdWUpO1xuICAgIGNhc2UgUHJpbWl0aXZlVHlwZS5TVFJJTkc6XG4gICAgICByZXR1cm4gY29uc3RhbnRzLmdldFN0cmluZyh2YWx1ZSk7XG4gICAgY2FzZSBQcmltaXRpdmVUeXBlLkJPT0xFQU5fT1JfVk9JRDpcbiAgICAgIHN3aXRjaCAodmFsdWUpIHtcbiAgICAgICAgY2FzZSAwOiByZXR1cm4gZmFsc2U7XG4gICAgICAgIGNhc2UgMTogcmV0dXJuIHRydWU7XG4gICAgICAgIGNhc2UgMjogcmV0dXJuIG51bGw7XG4gICAgICAgIGNhc2UgMzogcmV0dXJuIHVuZGVmaW5lZDtcbiAgICAgIH1cbiAgICBjYXNlIFByaW1pdGl2ZVR5cGUuTkVHQVRJVkU6XG4gICAgICByZXR1cm4gY29uc3RhbnRzLmdldE5lZ2F0aXZlKHZhbHVlKTtcbiAgICBkZWZhdWx0OlxuICAgICAgdGhyb3cgdW5yZWFjaGFibGUoKTtcbiAgfVxufVxuIl19 |
@@ -8,11 +8,3 @@ import { Register } from '@glimmer/vm'; | ||
var constants = program.constants; | ||
// console is not available in IE9 | ||
if (typeof console === 'undefined') { | ||
return; | ||
} | ||
// IE10 does not have `console.group` | ||
if (typeof console.group !== 'function') { | ||
return; | ||
} | ||
console.group('%c' + start + ':' + end, 'color: #999'); | ||
@@ -152,2 +144,2 @@ var _size = 0; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci9vcGNvZGUtY29tcGlsZXIvbGliL2RlYnVnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLEFBQU8sQUFBRSxBQUFRLFNBQU0sQUFBUSxBQUFFLGdCQUFNLEFBQWEsQUFBQyxBQUNyRCxBQUFPLEFBQUUsQUFBSyxBQUFFLEFBQU0sQUFBNEIsQUFBQzs7QUFDbkQsQUFBTyxTQUFFLEFBQVcsYUFBRSxBQUFJLEFBQUUsWUFBTSxBQUFlLEFBQUM7QUFtQmxELEFBQU0sMkJBQXFCLEFBQTJCLFNBQUUsQUFBYSxPQUFFLEFBQVcsS0FDaEYsQUFBRSxBQUFDLEFBQUMsQUFBSyxBQUFDOztBQUVSLEFBQUk7QUFGSyxBQUFDLEFBQ1YsQUFBK0IsWUFDekIsQUFBUyxBQUFFLFlBQUcsQUFBTyxBQUFDLEFBRTVCLEFBQWtDO0FBQ2xDLEFBQUUsQUFBQzs7WUFBQyxPQUFPLEFBQU8sWUFBSyxBQUFXLEFBQUMsYUFBQyxBQUFDLEFBQUMsQUFBTSxBQUFDLEFBQUM7QUFBQztBQUUvQyxBQUFxQztBQUNyQyxBQUFFLEFBQUM7WUFBQyxPQUFPLEFBQU8sUUFBQyxBQUFLLFVBQUssQUFBVSxBQUFDLFlBQUMsQUFBQyxBQUFDLEFBQU0sQUFBQyxBQUFDO0FBQUM7QUFFbkQsQUFBZTtnQkFBQyxBQUFLLEFBQUMsYUFBSyxBQUFLLGNBQUksQUFBRyxBQUFFLEtBQUUsQUFBYSxBQUFDLEFBQUMsQUFFM0Q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BQcmltaXRpdmVUeXBlLk5FR0FUSVZFOlxuICAgICAgcmV0dXJuIGNvbnN0YW50cy5nZXROZWdhdGl2ZSh2YWx1ZSk7XG4gICAgZGVmYXVsdDpcbiAgICAgIHRocm93IHVucmVhY2hhYmxlKCk7XG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "@glimmer/opcode-compiler", | ||
"version": "0.29.2", | ||
"version": "0.29.3", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/opcode-compiler", | ||
"dependencies": { | ||
"@glimmer/syntax": "^0.29.2", | ||
"@glimmer/util": "^0.29.2", | ||
"@glimmer/wire-format": "^0.29.2", | ||
"@glimmer/interfaces": "^0.29.2", | ||
"@glimmer/program": "^0.29.2", | ||
"@glimmer/vm": "^0.29.2", | ||
"@glimmer/encoder": "^0.29.2", | ||
"@glimmer/syntax": "^0.29.3", | ||
"@glimmer/util": "^0.29.3", | ||
"@glimmer/wire-format": "^0.29.3", | ||
"@glimmer/interfaces": "^0.29.3", | ||
"@glimmer/program": "^0.29.3", | ||
"@glimmer/vm": "^0.29.3", | ||
"@glimmer/encoder": "^0.29.3", | ||
"simple-html-tokenizer": "^0.4.1" | ||
}, | ||
"devDependencies": { | ||
"@glimmer/local-debug-flags": "^0.29.2", | ||
"@glimmer/local-debug-flags": "^0.29.3", | ||
"typescript": "^2.2.0" | ||
@@ -18,0 +18,0 @@ }, |
Sorry, the diff of this file is too big to display
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
1070427
9105
Updated@glimmer/encoder@^0.29.3
Updated@glimmer/interfaces@^0.29.3
Updated@glimmer/program@^0.29.3
Updated@glimmer/syntax@^0.29.3
Updated@glimmer/util@^0.29.3
Updated@glimmer/vm@^0.29.3
Updated@glimmer/wire-format@^0.29.3