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

@glimmer/syntax

Package Overview
Dependencies
Maintainers
10
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/syntax - npm Package Compare versions

Comparing version 0.23.0-alpha.10 to 0.23.0-alpha.11

21

dist/amd/es5/glimmer-syntax.js

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

define('@glimmer/syntax', ['exports', 'simple-html-tokenizer', '@glimmer/util', 'handlebars'], function (exports, simpleHtmlTokenizer, _glimmer_util, handlebars) { 'use strict';
define('@glimmer/syntax', ['exports', 'simple-html-tokenizer', 'handlebars'], function (exports, simpleHtmlTokenizer, handlebars) { 'use strict';

@@ -371,39 +371,34 @@ function isCall(node) {

_createClass(Parser, [{
key: 'currentAttr',
key: "currentAttr",
get: function () {
return _glimmer_util.expect(this.currentAttribute, 'expected attribute');
return this.currentAttribute;
}
}, {
key: 'currentTag',
key: "currentTag",
get: function () {
var node = this.currentNode;
_glimmer_util.assert(node && (node.type === 'StartTag' || node.type === 'EndTag'), 'expected tag');
return node;
}
}, {
key: 'currentStartTag',
key: "currentStartTag",
get: function () {
var node = this.currentNode;
_glimmer_util.assert(node && node.type === 'StartTag', 'expected start tag');
return node;
}
}, {
key: 'currentEndTag',
key: "currentEndTag",
get: function () {
var node = this.currentNode;
_glimmer_util.assert(node && node.type === 'EndTag', 'expected end tag');
return node;
}
}, {
key: 'currentComment',
key: "currentComment",
get: function () {
var node = this.currentNode;
_glimmer_util.assert(node && node.type === 'CommentStatement', 'expected a comment');
return node;
}
}, {
key: 'currentData',
key: "currentData",
get: function () {
var node = this.currentNode;
_glimmer_util.assert(node && node.type === 'TextNode', 'expected a text node');
return node;

@@ -410,0 +405,0 @@ }

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

'use strict';
"use strict";

@@ -8,6 +8,4 @@ Object.defineProperty(exports, "__esModule", {

var _simpleHtmlTokenizer = require('simple-html-tokenizer');
var _simpleHtmlTokenizer = require("simple-html-tokenizer");
var _util = require('@glimmer/util');
const entityParser = new _simpleHtmlTokenizer.EntityParser(_simpleHtmlTokenizer.HTML5NamedCharRefs);

@@ -24,7 +22,6 @@ class Parser {

get currentAttr() {
return (0, _util.expect)(this.currentAttribute, 'expected attribute');
return this.currentAttribute;
}
get currentTag() {
let node = this.currentNode;
(0, _util.assert)(node && (node.type === 'StartTag' || node.type === 'EndTag'), 'expected tag');
return node;

@@ -34,3 +31,2 @@ }

let node = this.currentNode;
(0, _util.assert)(node && node.type === 'StartTag', 'expected start tag');
return node;

@@ -40,3 +36,2 @@ }

let node = this.currentNode;
(0, _util.assert)(node && node.type === 'EndTag', 'expected end tag');
return node;

@@ -46,3 +41,2 @@ }

let node = this.currentNode;
(0, _util.assert)(node && node.type === 'CommentStatement', 'expected a comment');
return node;

@@ -52,3 +46,2 @@ }

let node = this.currentNode;
(0, _util.assert)(node && node.type === 'TextNode', 'expected a text node');
return node;

@@ -96,2 +89,2 @@ }

exports.Parser = Parser;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicGFyc2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSxBQUFPLEFBQ0wsQUFBZ0IsQUFDaEIsQUFBWSxBQUNaLEFBQWtCLEFBQUksQUFBYSxBQUNwQyxBQUFNLEFBQXVCLEFBQUM7O0FBSS9CLEFBQU8sQUFBRSxBQUFNLEFBQUUsQUFBTSxBQUFFLEFBQU0sQUFBZSxBQUFDOztBQUUvQyxNQUFNLEFBQVksZUFBRyxBQUFJLEFBQVksQUFBQyxBQUFhLEFBQUMsQUFBQyxBQXdCckQsQUFBTTs7QUFRSixnQkFBWSxBQUFjLFFBQUUsVUFBa0IsQUFBRTtBQVB0QyxhQUFZLGVBQWMsQUFBRSxBQUFDO0FBR2hDLGFBQ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1xuICAgIGxldCBjdXJyZW50TGluZSA9IGZpcnN0TGluZSAtIDE7XG4gICAgbGV0IGZpcnN0Q29sdW1uID0gbm9kZS5sb2Muc3RhcnQuY29sdW1uO1xuICAgIGxldCBzdHJpbmcgPSBbXTtcbiAgICBsZXQgbGluZTtcblxuICAgIGxldCBsYXN0TGluZTogbnVtYmVyO1xuICAgIGxldCBsYXN0Q29sdW1uOiBudW1iZXI7XG5cbiAgICBpZiAoZW5kTm9kZSkge1xuICAgICAgbGFzdExpbmUgPSBlbmROb2RlLmxvYy5lbmQubGluZSAtIDE7XG4gICAgICBsYXN0Q29sdW1uID0gZW5kTm9kZS5sb2MuZW5kLmNvbHVtbjtcbiAgICB9IGVsc2Uge1xuICAgICAgbGFzdExpbmUgPSBub2RlLmxvYy5lbmQubGluZSAtIDE7XG4gICAgICBsYXN0Q29sdW1uID0gbm9kZS5sb2MuZW5kLmNvbHVtbjtcbiAgICB9XG5cbiAgICB3aGlsZSAoY3VycmVudExpbmUgPCBsYXN0TGluZSkge1xuICAgICAgY3VycmVudExpbmUrKztcbiAgICAgIGxpbmUgPSB0aGlzLnNvdXJjZVtjdXJyZW50TGluZV07XG5cbiAgICAgIGlmIChjdXJyZW50TGluZSA9PT0gZmlyc3RMaW5lKSB7XG4gICAgICAgIGlmIChmaXJzdExpbmUgPT09IGxhc3RMaW5lKSB7XG4gICAgICAgICAgc3RyaW5nLnB1c2gobGluZS5zbGljZShmaXJzdENvbHVtbiwgbGFzdENvbHVtbikpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHN0cmluZy5wdXNoKGxpbmUuc2xpY2UoZmlyc3RDb2x1bW4pKTtcbiAgICAgICAgfVxuICAgICAgfSBlbHNlIGlmIChjdXJyZW50TGluZSA9PT0gbGFzdExpbmUpIHtcbiAgICAgICAgc3RyaW5nLnB1c2gobGluZS5zbGljZSgwLCBsYXN0Q29sdW1uKSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBzdHJpbmcucHVz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G4gICAgICBjdXJyZW50TGluZSsrO1xuICAgICAgbGluZSA9IHRoaXMuc291cmNlW2N1cnJlbnRMaW5lXTtcblxuICAgICAgaWYgKGN1cnJlbnRMaW5lID09PSBmaXJzdExpbmUpIHtcbiAgICAgICAgaWYgKGZpcnN0TGluZSA9PT0gbGFzdExpbmUpIHtcbiAgICAgICAgICBzdHJpbmcucHVzaChsaW5lLnNsaWNlKGZpcnN0Q29sdW1uLCBsYXN0Q29sdW1uKSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgc3RyaW5nLnB1c2gobGluZS5zbGljZShmaXJzdENvbHVtbikpO1xuICAgICAgICB9XG4gICAgICB9IGVsc2UgaWYgKGN1cnJlbnRMaW5lID09PSBsYXN0TGluZSkge1xuICAgICAgICBzdHJpbmcucHVzaChsaW5lLnNsaWNlKDAsIGxhc3RDb2x1bW4pKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHN0cmluZy5wdXNoKGxpbmUpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBzdHJpbmcuam9pbignXFxuJyk7XG4gIH1cbn1cbiJdfQ==

@@ -10,4 +10,2 @@ "use strict";

var _util = require("@glimmer/util");
var _createClass = function () {

@@ -86,39 +84,34 @@ function defineProperties(target, props) {

_createClass(Parser, [{
key: 'currentAttr',
key: "currentAttr",
get: function () {
return (0, _util.expect)(this.currentAttribute, 'expected attribute');
return this.currentAttribute;
}
}, {
key: 'currentTag',
key: "currentTag",
get: function () {
var node = this.currentNode;
(0, _util.assert)(node && (node.type === 'StartTag' || node.type === 'EndTag'), 'expected tag');
return node;
}
}, {
key: 'currentStartTag',
key: "currentStartTag",
get: function () {
var node = this.currentNode;
(0, _util.assert)(node && node.type === 'StartTag', 'expected start tag');
return node;
}
}, {
key: 'currentEndTag',
key: "currentEndTag",
get: function () {
var node = this.currentNode;
(0, _util.assert)(node && node.type === 'EndTag', 'expected end tag');
return node;
}
}, {
key: 'currentComment',
key: "currentComment",
get: function () {
var node = this.currentNode;
(0, _util.assert)(node && node.type === 'CommentStatement', 'expected a comment');
return node;
}
}, {
key: 'currentData',
key: "currentData",
get: function () {
var node = this.currentNode;
(0, _util.assert)(node && node.type === 'TextNode', 'expected a text node');
return node;

@@ -130,2 +123,2 @@ }

}();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicGFyc2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSxBQUFPLEFBQ0wsQUFBZ0IsQUFDaEIsQUFBWSxBQUNaLEFBQWtCLEFBQUksQUFBYSxBQUNwQyxBQUFNLEFBQXVCLEFBQUM7O0FBSS9CLEFBQU8sQUFBRSxBQUFNLEFBQUUsQUFBTSxBQUFFLEFBQU0sQUFBZSxBQUFDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFL0MsSUFBTSxBQUFZLGVBQUcsQUFBSSxBQUFZLEFBQUMsQUFBYSxBQUFDLEFBQUMsQUF3QnJELEFBQU07MENBUUo7b0JBQVksQUFBYztZQUFFLDhFQUFrQixBQUFFOzs4QkFQdEM7O2FBQVksZUFBYyxBQUFFLEFBQUMsQUFHaEM7YUFBZ0IsbUJBQXNCLEFBQUksQUFBQyxBQUMzQzthQUFXLGNBQTZFLEFBQUksQUFBQyxBQUM3RjthQUFTLFlBQUcsQUFBSSxBQUFnQiwwQ0FBQyxBQUFJLE1BQUUsQUFBWSxBQUFDLEFBQUMsQUFHMUQsQUFBSTthQUFDLEFBQU8sVUFBRyxBQUFPLEFBQUMsQUFDdkIsQUFBSTthQUFDLEFBQU0sU0FBRyxBQUFNLE9BQUMsQUFBSyxNQUFDLEFBQWUsQUFBQyxBQUFDLEFBQzlDLEFBQUMsQUFFRCxBQUFJLEFBQVc7OztxQkFxQ2YsQUFBVSxpQ0FBQyxBQUFrQixNQUMzQixBQU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bGFzdExpbmUgPSBlbmROb2RlLmxvYy5lbmQubGluZSAtIDE7XG4gICAgICBsYXN0Q29sdW1uID0gZW5kTm9kZS5sb2MuZW5kLmNvbHVtbjtcbiAgICB9IGVsc2Uge1xuICAgICAgbGFzdExpbmUgPSBub2RlLmxvYy5lbmQubGluZSAtIDE7XG4gICAgICBsYXN0Q29sdW1uID0gbm9kZS5sb2MuZW5kLmNvbHVtbjtcbiAgICB9XG5cbiAgICB3aGlsZSAoY3VycmVudExpbmUgPCBsYXN0TGluZSkge1xuICAgICAgY3VycmVudExpbmUrKztcbiAgICAgIGxpbmUgPSB0aGlzLnNvdXJjZVtjdXJyZW50TGluZV07XG5cbiAgICAgIGlmIChjdXJyZW50TGluZSA9PT0gZmlyc3RMaW5lKSB7XG4gICAgICAgIGlmIChmaXJzdExpbmUgPT09IGxhc3RMaW5lKSB7XG4gICAgICAgICAgc3RyaW5nLnB1c2gobGluZS5zbGljZShmaXJzdENvbHVtbiwgbGFzdENvbHVtbikpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHN0cmluZy5wdXNoKGxpbmUuc2xpY2UoZmlyc3RDb2x1bW4pKTtcbiAgICAgICAgfVxuICAgICAgfSBlbHNlIGlmIChjdXJyZW50TGluZSA9PT0gbGFzdExpbmUpIHtcbiAgICAgICAgc3RyaW5nLnB1c2gobGluZS5zbGljZSgwLCBsYXN0Q29sdW1uKSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBzdHJpbmcucHVzaChsaW5lKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gc3RyaW5nLmpvaW4oJ1xcbicpO1xuICB9XG59XG4iXX0=
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicGFyc2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQ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0TGluZSA9PT0gbGFzdExpbmUpIHtcbiAgICAgICAgICBzdHJpbmcucHVzaChsaW5lLnNsaWNlKGZpcnN0Q29sdW1uLCBsYXN0Q29sdW1uKSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgc3RyaW5nLnB1c2gobGluZS5zbGljZShmaXJzdENvbHVtbikpO1xuICAgICAgICB9XG4gICAgICB9IGVsc2UgaWYgKGN1cnJlbnRMaW5lID09PSBsYXN0TGluZSkge1xuICAgICAgICBzdHJpbmcucHVzaChsaW5lLnNsaWNlKDAsIGxhc3RDb2x1bW4pKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHN0cmluZy5wdXNoKGxpbmUpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBzdHJpbmcuam9pbignXFxuJyk7XG4gIH1cbn1cbiJdfQ==
import { EventedTokenizer, EntityParser, HTML5NamedCharRefs as namedCharRefs } from "simple-html-tokenizer";
import { assert, expect } from '@glimmer/util';
const entityParser = new EntityParser(namedCharRefs);

@@ -14,7 +13,6 @@ export class Parser {

get currentAttr() {
return expect(this.currentAttribute, 'expected attribute');
return this.currentAttribute;
}
get currentTag() {
let node = this.currentNode;
assert(node && (node.type === 'StartTag' || node.type === 'EndTag'), 'expected tag');
return node;

@@ -24,3 +22,2 @@ }

let node = this.currentNode;
assert(node && node.type === 'StartTag', 'expected start tag');
return node;

@@ -30,3 +27,2 @@ }

let node = this.currentNode;
assert(node && node.type === 'EndTag', 'expected end tag');
return node;

@@ -36,3 +32,2 @@ }

let node = this.currentNode;
assert(node && node.type === 'CommentStatement', 'expected a comment');
return node;

@@ -42,3 +37,2 @@ }

let node = this.currentNode;
assert(node && node.type === 'TextNode', 'expected a text node');
return node;

@@ -89,2 +83,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicGFyc2VyLnRzIl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4gICAgICBsYXN0TGluZSA9IGVuZE5vZGUubG9jLmVuZC5saW5lIC0gMTtcbiAgICAgIGxhc3RDb2x1bW4gPSBlbmROb2RlLmxvYy5lbmQuY29sdW1uO1xuICAgIH0gZWxzZSB7XG4gICAgICBsYXN0TGluZSA9IG5vZGUubG9jLmVuZC5saW5lIC0gMTtcbiAgICAgIGxhc3RDb2x1bW4gPSBub2RlLmxvYy5lbmQuY29sdW1uO1xuICAgIH1cblxuICAgIHdoaWxlIChjdXJyZW50TGluZSA8IGxhc3RMaW5lKSB7XG4gICAgICBjdXJyZW50TGluZSsrO1xuICAgICAgbGluZSA9IHRoaXMuc291cmNlW2N1cnJlbnRMaW5lXTtcblxuICAgICAgaWYgKGN1cnJlbnRMaW5lID09PSBmaXJzdExpbmUpIHtcbiAgICAgICAgaWYgKGZpcnN0TGluZSA9PT0gbGFzdExpbmUpIHtcbiAgICAgICAgICBzdHJpbmcucHVzaChsaW5lLnNsaWNlKGZpcnN0Q29sdW1uLCBsYXN0Q29sdW1uKSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgc3RyaW5nLnB1c2gobGluZS5zbGljZShmaXJzdENvbHVtbikpO1xuICAgICAgICB9XG4gICAgICB9IGVsc2UgaWYgKGN1cnJlbnRMaW5lID09PSBsYXN0TGluZSkge1xuICAgICAgICBzdHJpbmcucHVzaChsaW5lLnNsaWNlKDAsIGxhc3RDb2x1bW4pKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHN0cmluZy5wdXNoKGxpbmUpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBzdHJpbmcuam9pbignXFxuJyk7XG4gIH1cbn1cbiJdfQ==

@@ -6,3 +6,2 @@ var _createClass = function () { 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

import { EventedTokenizer, EntityParser, HTML5NamedCharRefs as namedCharRefs } from "simple-html-tokenizer";
import { assert, expect } from '@glimmer/util';
var entityParser = new EntityParser(namedCharRefs);

@@ -65,39 +64,34 @@ export var Parser = function () {

_createClass(Parser, [{
key: 'currentAttr',
key: "currentAttr",
get: function () {
return expect(this.currentAttribute, 'expected attribute');
return this.currentAttribute;
}
}, {
key: 'currentTag',
key: "currentTag",
get: function () {
var node = this.currentNode;
assert(node && (node.type === 'StartTag' || node.type === 'EndTag'), 'expected tag');
return node;
}
}, {
key: 'currentStartTag',
key: "currentStartTag",
get: function () {
var node = this.currentNode;
assert(node && node.type === 'StartTag', 'expected start tag');
return node;
}
}, {
key: 'currentEndTag',
key: "currentEndTag",
get: function () {
var node = this.currentNode;
assert(node && node.type === 'EndTag', 'expected end tag');
return node;
}
}, {
key: 'currentComment',
key: "currentComment",
get: function () {
var node = this.currentNode;
assert(node && node.type === 'CommentStatement', 'expected a comment');
return node;
}
}, {
key: 'currentData',
key: "currentData",
get: function () {
var node = this.currentNode;
assert(node && node.type === 'TextNode', 'expected a text node');
return node;

@@ -109,2 +103,2 @@ }

}();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicGFyc2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxBQUFPLFNBQ0wsQUFBZ0Isa0JBQ2hCLEFBQVksY0FDWixBQUFrQixzQkFBSSxBQUFhLEFBQ3BDLHFCQUFNLEFBQXVCLEFBQUM7QUFJL0IsQUFBTyxTQUFFLEFBQU0sUUFBRSxBQUFNLEFBQUUsY0FBTSxBQUFlLEFBQUM7QUFFL0MsSUFBTSxBQUFZLGVBQUcsSUFBSSxBQU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ID0gZW5kTm9kZS5sb2MuZW5kLmxpbmUgLSAxO1xuICAgICAgbGFzdENvbHVtbiA9IGVuZE5vZGUubG9jLmVuZC5jb2x1bW47XG4gICAgfSBlbHNlIHtcbiAgICAgIGxhc3RMaW5lID0gbm9kZS5sb2MuZW5kLmxpbmUgLSAxO1xuICAgICAgbGFzdENvbHVtbiA9IG5vZGUubG9jLmVuZC5jb2x1bW47XG4gICAgfVxuXG4gICAgd2hpbGUgKGN1cnJlbnRMaW5lIDwgbGFzdExpbmUpIHtcbiAgICAgIGN1cnJlbnRMaW5lKys7XG4gICAgICBsaW5lID0gdGhpcy5zb3VyY2VbY3VycmVudExpbmVdO1xuXG4gICAgICBpZiAoY3VycmVudExpbmUgPT09IGZpcnN0TGluZSkge1xuICAgICAgICBpZiAoZmlyc3RMaW5lID09PSBsYXN0TGluZSkge1xuICAgICAgICAgIHN0cmluZy5wdXNoKGxpbmUuc2xpY2UoZmlyc3RDb2x1bW4sIGxhc3RDb2x1bW4pKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBzdHJpbmcucHVzaChsaW5lLnNsaWNlKGZpcnN0Q29sdW1uKSk7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSBpZiAoY3VycmVudExpbmUgPT09IGxhc3RMaW5lKSB7XG4gICAgICAgIHN0cmluZy5wdXNoKGxpbmUuc2xpY2UoMCwgbGFzdENvbHVtbikpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgc3RyaW5nLnB1c2gobGluZSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHN0cmluZy5qb2luKCdcXG4nKTtcbiAgfVxufVxuIl19
{
"name": "@glimmer/syntax",
"version": "0.23.0-alpha.10",
"version": "0.23.0-alpha.11",
"repository": "https://github.com/tildeio/glimmer/tree/master/packages/@glimmer/syntax",
"dependencies": {
"handlebars": "^4.0.6",
"@glimmer/interfaces": "^0.23.0-alpha.10",
"@glimmer/util": "^0.23.0-alpha.10",
"@glimmer/interfaces": "^0.23.0-alpha.11",
"@glimmer/util": "^0.23.0-alpha.11",
"simple-html-tokenizer": "^0.3.0"

@@ -10,0 +10,0 @@ },

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