Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@glimmer/compiler

Package Overview
Dependencies
Maintainers
12
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/compiler - npm Package Compare versions

Comparing version 0.74.2 to 0.75.0

8

dist/commonjs/es2017/index.js

@@ -6,8 +6,2 @@ "use strict";

});
Object.defineProperty(exports, "defaultId", {
enumerable: true,
get: function () {
return _compiler.defaultId;
}
});
Object.defineProperty(exports, "precompile", {

@@ -81,2 +75,2 @@ enumerable: true,

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL2NvbXBpbGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOztBQUNBOztBQVlBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgZGVmYXVsdElkLCBwcmVjb21waWxlLCBwcmVjb21waWxlSlNPTiwgUHJlY29tcGlsZU9wdGlvbnMgfSBmcm9tICcuL2xpYi9jb21waWxlcic7XG5leHBvcnQge1xuICBQcm9ncmFtU3ltYm9scyxcbiAgYnVpbGRTdGF0ZW1lbnQsXG4gIGJ1aWxkU3RhdGVtZW50cyxcbiAgcyxcbiAgYyxcbiAgdW5pY29kZSxcbiAgTkVXTElORSxcbn0gZnJvbSAnLi9saWIvYnVpbGRlci9idWlsZGVyJztcbmV4cG9ydCB7IEJ1aWxkZXJTdGF0ZW1lbnQsIEJ1aWxkZXIgfSBmcm9tICcuL2xpYi9idWl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IjoiIn0=

@@ -8,3 +8,2 @@ "use strict";

exports.precompile = precompile;
exports.defaultId = void 0;

@@ -21,29 +20,2 @@ var _syntax = require("@glimmer/syntax");

const defaultId = (() => {
if (typeof require === 'function') {
try {
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
const crypto = require('crypto');
let idFn = src => {
let hash = crypto.createHash('sha1');
hash.update(src, 'utf8'); // trim to 6 bytes of data (2^48 - 1)
return hash.digest('base64').substring(0, 8);
};
idFn('test');
return idFn;
} catch (e) {}
}
return function idFn() {
return null;
};
})();
exports.defaultId = defaultId;
const defaultOptions = {
id: defaultId
};
/*

@@ -63,4 +35,3 @@ * Compile a string into a template javascript string.

*/
function precompileJSON(string, options = defaultOptions) {
function precompileJSON(string, options = {}) {
var _a, _b;

@@ -105,3 +76,3 @@

function precompile(source, options = defaultOptions) {
function precompile(source, options = {}) {
var _a, _b;

@@ -111,6 +82,4 @@

let moduleName = (_a = options.meta) === null || _a === void 0 ? void 0 : _a.moduleName;
let idFn = options.id || defaultId;
let blockJSON = JSON.stringify(block);
let templateJSONObject = {
id: idFn(JSON.stringify(options.meta) + blockJSON),
block: blockJSON,

@@ -140,2 +109,2 @@ moduleName: moduleName !== null && moduleName !== void 0 ? moduleName : '(unknown template module)',

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL2NvbXBpbGVyL2xpYi9jb21waWxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFNQTs7QUFDQTs7QUFFQTs7QUFDQTs7OztBQWNPLE1BQU0sU0FBUyxHQUFpQixDQUFDLE1BQUs7QUFDM0MsTUFBSSxPQUFBLE9BQUEsS0FBSixVQUFBLEVBQW1DO0FBQ2pDLFFBQUk7QUFDRjtBQUNBLFlBQU0sTUFBTSxHQUFHLE9BQU8sQ0FB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tcbiAgfSBlbHNlIHtcbiAgICBzdHJpbmdpZmllZCA9IHN0cmluZ2lmaWVkLnJlcGxhY2UoYFwiJHtTQ09QRV9QTEFDRUhPTERFUn1cImAsICdudWxsJyk7XG4gIH1cblxuICByZXR1cm4gc3RyaW5naWZpZWQ7XG59XG5cbmV4cG9ydCB7IFByZWNvbXBpbGVPcHRpb25zIH07XG4iXSwic291cmNlUm9vdCI6IiJ9

@@ -6,8 +6,2 @@ "use strict";

});
Object.defineProperty(exports, "defaultId", {
enumerable: true,
get: function () {
return _compiler.defaultId;
}
});
Object.defineProperty(exports, "precompile", {

@@ -81,2 +75,2 @@ enumerable: true,

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL2NvbXBpbGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOztBQUNBOztBQVlBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgZGVmYXVsdElkLCBwcmVjb21waWxlLCBwcmVjb21waWxlSlNPTiwgUHJlY29tcGlsZU9wdGlvbnMgfSBmcm9tICcuL2xpYi9jb21waWxlcic7XG5leHBvcnQge1xuICBQcm9ncmFtU3ltYm9scyxcbiAgYnVpbGRTdGF0ZW1lbnQsXG4gIGJ1aWxkU3RhdGVtZW50cyxcbiAgcyxcbiAgYyxcbiAgdW5pY29kZSxcbiAgTkVXTElORSxcbn0gZnJvbSAnLi9saWIvYnVpbGRlci9idWlsZGVyJztcbmV4cG9ydCB7IEJ1aWxkZXJTdGF0ZW1lbnQsIEJ1aWxkZ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nVnJztcbiJdLCJzb3VyY2VSb290IjoiIn0=

@@ -8,3 +8,2 @@ "use strict";

exports.precompile = precompile;
exports.defaultId = void 0;

@@ -21,29 +20,2 @@ var _syntax = require("@glimmer/syntax");

var defaultId = function () {
if (typeof require === 'function') {
try {
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
var crypto = require('crypto');
var idFn = function idFn(src) {
var hash = crypto.createHash('sha1');
hash.update(src, 'utf8'); // trim to 6 bytes of data (2^48 - 1)
return hash.digest('base64').substring(0, 8);
};
idFn('test');
return idFn;
} catch (e) {}
}
return function idFn() {
return null;
};
}();
exports.defaultId = defaultId;
var defaultOptions = {
id: defaultId
};
/*

@@ -63,6 +35,5 @@ * Compile a string into a template javascript string.

*/
function precompileJSON(string, options) {
if (options === void 0) {
options = defaultOptions;
options = {};
}

@@ -115,3 +86,3 @@

if (options === void 0) {
options = defaultOptions;
options = {};
}

@@ -126,6 +97,4 @@

var moduleName = (_a = options.meta) === null || _a === void 0 ? void 0 : _a.moduleName;
var idFn = options.id || defaultId;
var blockJSON = JSON.stringify(block);
var templateJSONObject = {
id: idFn(JSON.stringify(options.meta) + blockJSON),
block: blockJSON,

@@ -155,2 +124,2 @@ moduleName: moduleName !== null && moduleName !== void 0 ? moduleName : '(unknown template module)',

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL2NvbXBpbGVyL2xpYi9jb21waWxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFNQTs7QUFDQTs7QUFFQTs7QUFDQTs7OztBQWNPLElBQU0sU0FBUyxHQUFrQixZQUFLO0FBQzNDLE1BQUksT0FBQSxPQUFBLEtBQUosVUFBQSxFQUFtQztBQUNqQyxRQUFJO0FBQ0Y7QUFDQSxVQUFNLE1BQU0sR0FBRyxPQUFPLENBQX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Swic291cmNlUm9vdCI6IiJ9

4

dist/modules/es2017/index.js

@@ -1,5 +0,5 @@

export { defaultId, precompile, precompileJSON } from './lib/compiler';
export { precompile, precompileJSON } from './lib/compiler';
export { ProgramSymbols, buildStatement, buildStatements, s, c, unicode, NEWLINE } from './lib/builder/builder'; // exported only for tests
export { default as WireFormatDebugger } from './lib/wire-format-debug';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL2NvbXBpbGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFNBQVMsU0FBVCxFQUFvQixVQUFwQixFQUFnQyxjQUFoQyxRQUF5RSxnQkFBekU7QUFDQSxTQUNFLGNBREYsRUFFRSxjQUZGLEVBR0UsZUFIRixFQUlFLENBSkYsRUFLRSxDQUxGLEVBTUUsT0FORixFQU9FLE9BUEYsUUFRTyx1QkFSUCxDLENBV0E7O0FBQ0EsU0FBUyxPQUFPLElBQUksa0JBQXBCLFFBQThDLHlCQUE5QyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IGRlZmF1bHRJZCwgcHJlY29tcGlsZSwgcHJlY29tcGlsZUpTT04sIFByZWNvbXBpbGVPcHRpb25zIH0gZnJvbSAnLi9saWIvY29tcGlsZXInO1xuZXhwb3J0IHtcbiAgUHJvZ3JhbVN5bWJvbHMsXG4gIGJ1aWxkU3RhdGVtZW50LFxuICBidWlsZFN0YXRlbWVudHMsXG4gIHMsXG4gIGMsXG4gIHVuaWNvZGUsXG4gIE5FV0xJTkUsXG59IGZyb20gJy4vbGliL2J1aWxkZXIvYnVpbGRlcic7XG5leHBvcnQgeyBCdWlsZGVyU3RhdGVtZW50LCBCdWlsZGVyIH0gZnJvbSAnLi9saWIvYnVpbGRlci9idWlsZGVyLWludGVyZmFjZSc7XG5cbi8vIGV4cG9ydGVkIG9ubHkgZm9yIHR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zyc7XG4iXSwic291cmNlUm9vdCI6IiJ9

@@ -5,27 +5,2 @@ import { normalize, Source } from '@glimmer/syntax';

import { visit as pass2 } from './passes/2-encoding/index';
export const defaultId = (() => {
if (typeof require === 'function') {
try {
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
const crypto = require('crypto');
let idFn = src => {
let hash = crypto.createHash('sha1');
hash.update(src, 'utf8'); // trim to 6 bytes of data (2^48 - 1)
return hash.digest('base64').substring(0, 8);
};
idFn('test');
return idFn;
} catch (e) {}
}
return function idFn() {
return null;
};
})();
const defaultOptions = {
id: defaultId
};
/*

@@ -46,3 +21,3 @@ * Compile a string into a template javascript string.

export function precompileJSON(string, options = defaultOptions) {
export function precompileJSON(string, options = {}) {
var _a, _b;

@@ -86,3 +61,3 @@

export function precompile(source, options = defaultOptions) {
export function precompile(source, options = {}) {
var _a, _b;

@@ -92,6 +67,4 @@

let moduleName = (_a = options.meta) === null || _a === void 0 ? void 0 : _a.moduleName;
let idFn = options.id || defaultId;
let blockJSON = JSON.stringify(block);
let templateJSONObject = {
id: idFn(JSON.stringify(options.meta) + blockJSON),
block: blockJSON,

@@ -121,2 +94,2 @@ moduleName: moduleName !== null && moduleName !== void 0 ? moduleName : '(unknown template module)',

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL2NvbXBpbGVyL2xpYi9jb21waWxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNQSxTQUFTLFNBQVQsRUFBdUMsTUFBdkMsUUFBbUUsaUJBQW5FO0FBQ0EsU0FBUyxZQUFULFFBQTZCLGVBQTdCO0FBRUEsT0FBTyxLQUFQLE1BQWtCLGdDQUFsQjtBQUNBLFNBQVMsS0FBSyxJQUFJLEtBQWxCLFFBQStCLDJCQUEvQjtBQWNBLE9BQU8sTUFBTSxTQUFTLEdB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1cblxuICAvLyBKU09OIGlzIGphdmFzY3JpcHRcbiAgbGV0IHN0cmluZ2lmaWVkID0gSlNPTi5zdHJpbmdpZnkodGVtcGxhdGVKU09OT2JqZWN0KTtcblxuICBpZiAob3B0aW9ucy5zdHJpY3RNb2RlICYmIHVzZWRMb2NhbHMubGVuZ3RoID4gMCkge1xuICAgIGxldCBzY29wZUZuID0gYCgpPT5bJHt1c2VkTG9jYWxzLmpvaW4oJywnKX1dYDtcblxuICAgIHN0cmluZ2lmaWVkID0gc3RyaW5naWZpZWQucmVwbGFjZShgXCIke1NDT1BFX1BMQUNFSE9MREVSfVwiYCwgc2NvcGVGbik7XG4gIH0gZWxzZSB7XG4gICAgc3RyaW5naWZpZWQgPSBzdHJpbmdpZmllZC5yZXBsYWNlKGBcIiR7U0NPUEVfUExBQ0VIT0xERVJ9XCJgLCAnbnVsbCcpO1xuICB9XG5cbiAgcmV0dXJuIHN0cmluZ2lmaWVkO1xufVxuXG5leHBvcnQgeyBQcmVjb21waWxlT3B0aW9ucyB9O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==

@@ -1,5 +0,5 @@

export { defaultId, precompile, precompileJSON } from './lib/compiler';
export { precompile, precompileJSON } from './lib/compiler';
export { ProgramSymbols, buildStatement, buildStatements, s, c, unicode, NEWLINE } from './lib/builder/builder'; // exported only for tests
export { default as WireFormatDebugger } from './lib/wire-format-debug';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL2NvbXBpbGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFNBQUEsU0FBQSxFQUFBLFVBQUEsRUFBQSxjQUFBLFFBQUEsZ0JBQUE7QUFDQSxTQUFBLGNBQUEsRUFBQSxjQUFBLEVBQUEsZUFBQSxFQUFBLENBQUEsRUFBQSxDQUFBLEVBQUEsT0FBQSxFQUFBLE9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sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IHByZWNvbXBpbGUsIHByZWNvbXBpbGVKU09OLCBQcmVjb21waWxlT3B0aW9ucyB9IGZyb20gJy4vbGliL2NvbXBpbGVyJztcbmV4cG9ydCB7XG4gIFByb2dyYW1TeW1ib2xzLFxuICBidWlsZFN0YXRlbWVudCxcbiAgYnVpbGRTdGF0ZW1lbnRzLFxuICBzLFxuICBjLFxuICB1bmljb2RlLFxuICBORVdMSU5FLFxufSBmcm9tICcuL2xpYi9idWlsZGVyL2J1aWxkZXInO1xuZXhwb3J0IHsgQnVpbGRlclN0YXRlbWVudCwgQnVpbGRlciB9IGZyb20gJy4vbGliL2J1aWxkZXIvYnVpbGRlci1pbnRlcmZhY2UnO1xuXG4vLyBleHBvcnRlZCBvbmx5IGZvciB0ZXN0c1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBXaXJlRm9ybWF0RGVidWdnZXIgfSBmcm9tICcuL2xpYi93aXJlLWZvcm1hdC1kZWJ1Zyc7XG4iXSwic291cmNlUm9vdCI6IiJ9

@@ -5,27 +5,2 @@ import { normalize, Source } from '@glimmer/syntax';

import { visit as pass2 } from './passes/2-encoding/index';
export var defaultId = function () {
if (typeof require === 'function') {
try {
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
var crypto = require('crypto');
var idFn = function idFn(src) {
var hash = crypto.createHash('sha1');
hash.update(src, 'utf8'); // trim to 6 bytes of data (2^48 - 1)
return hash.digest('base64').substring(0, 8);
};
idFn('test');
return idFn;
} catch (e) {}
}
return function idFn() {
return null;
};
}();
var defaultOptions = {
id: defaultId
};
/*

@@ -48,3 +23,3 @@ * Compile a string into a template javascript string.

if (options === void 0) {
options = defaultOptions;
options = {};
}

@@ -96,3 +71,3 @@

if (options === void 0) {
options = defaultOptions;
options = {};
}

@@ -107,6 +82,4 @@

var moduleName = (_a = options.meta) === null || _a === void 0 ? void 0 : _a.moduleName;
var idFn = options.id || defaultId;
var blockJSON = JSON.stringify(block);
var templateJSONObject = {
id: idFn(JSON.stringify(options.meta) + blockJSON),
block: blockJSON,

@@ -136,2 +109,2 @@ moduleName: moduleName !== null && moduleName !== void 0 ? moduleName : '(unknown template module)',

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL2NvbXBpbGVyL2xpYi9jb21waWxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNQSxTQUFBLFNBQUEsRUFBQSxNQUFBLFFBQUEsaUJBQUE7QUFDQSxTQUFBLFlBQUEsUUFBQSxlQUFBO0FBRUEsT0FBQSxLQUFBLE1BQUEsZ0NBQUE7QUFDQSxTQUFTLEtBQUssSUFBZCxLQUFBLFFBQUEsMkJBQUE7QUFjQSxPQUFPLElBQU0sU0FBUyxHQUFrQixZQUFLO0FBQzNDLE1BQUksT0FBQSxPQUFBLEtBQUosVUFBQSxFQUFtQztBQUNqQyxRQUFJO0FBQ0Y7QUFDQSxVQUFNLE1BQU0sR0FBRyxPQUFPLENBQXRCLFFBQXNCLENBQXRCOztBQUVBLFVBQUksSUFBSSxHQUFrQixTQUF0QixJQUFzQixDQUFBLEdBQUQsRUFBUTtBQUMvQixZQUFJLElBQUksR0FBRyxNQUFNLENBQU4sVUFBQSxDQUFYLE1BQVcsQ0FBWDtBQUNBLFFBQUEsSUFBSSxDQUFKLE1BQUEsQ0FBQSxHQUFBLEVBRitCLE1BRS9CLEVBRitCLENBRy9COztBQUNBLGVBQU8sSUFBSSxDQUFKLE1BQUEsQ0FBQSxRQUFBLEVBQUEsU0FBQSxDQUFBLENBQUEsRUFBUCxDQUFPLENBQVA7QUFKRixPQUFBOztBQU9BLE1BQUEsSUFBSSxDQUFKLE1BQUksQ0FBSjtBQUVBLGFBQUEsSUFBQTtBQWJGLEtBQUEsQ0FjRSxPQUFBLENBQUEsRUFBVSxDQUFFO0F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UNFSE9MREVSfVwiYCwgc2NvcGVGbik7XG4gIH0gZWxzZSB7XG4gICAgc3RyaW5naWZpZWQgPSBzdHJpbmdpZmllZC5yZXBsYWNlKGBcIiR7U0NPUEVfUExBQ0VIT0xERVJ9XCJgLCAnbnVsbCcpO1xuICB9XG5cbiAgcmV0dXJuIHN0cmluZ2lmaWVkO1xufVxuXG5leHBvcnQgeyBQcmVjb21waWxlT3B0aW9ucyB9O1xuIl0sInNvdXJjZVJvb3QiOiIifQ==

@@ -1,2 +0,2 @@

export { defaultId, precompile, precompileJSON, PrecompileOptions } from './lib/compiler';
export { precompile, precompileJSON, PrecompileOptions } from './lib/compiler';
export { ProgramSymbols, buildStatement, buildStatements, s, c, unicode, NEWLINE, } from './lib/builder/builder';

@@ -3,0 +3,0 @@ export { BuilderStatement, Builder } from './lib/builder/builder-interface';

import { SerializedTemplateBlock, TemplateJavascript } from '@glimmer/interfaces';
import { PrecompileOptions, TemplateIdFn } from '@glimmer/syntax';
export declare const defaultId: TemplateIdFn;
import { PrecompileOptions } from '@glimmer/syntax';
export declare function precompileJSON(string: string, options?: PrecompileOptions): [block: SerializedTemplateBlock, usedLocals: string[]];

@@ -5,0 +4,0 @@ export declare function precompile(source: string, options?: PrecompileOptions): TemplateJavascript;

{
"name": "@glimmer/compiler",
"version": "0.74.2",
"version": "0.75.0",
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/compiler",
"dependencies": {
"@glimmer/syntax": "0.74.2",
"@glimmer/util": "0.74.2",
"@glimmer/wire-format": "0.74.2",
"@glimmer/interfaces": "0.74.2",
"@glimmer/syntax": "0.75.0",
"@glimmer/util": "0.75.0",
"@glimmer/wire-format": "0.75.0",
"@glimmer/interfaces": "0.75.0",
"@simple-dom/interface": "^1.4.0"
},
"devDependencies": {
"@glimmer/local-debug-flags": "0.74.2"
"@glimmer/local-debug-flags": "0.75.0"
},

@@ -15,0 +15,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc