@glimmer/node
Advanced tools
Comparing version 0.30.5 to 0.31.0
@@ -83,3 +83,3 @@ define('@glimmer/node', ['exports', '@glimmer/runtime'], function (exports, runtime) { 'use strict'; | ||
var depth = this.serializeBlockDepth++; | ||
this.__appendComment('%+block:' + depth + '%'); | ||
this.__appendComment('%+b:' + depth + '%'); | ||
_NewElementBuilder.prototype.__openBlock.call(this); | ||
@@ -90,3 +90,3 @@ }; | ||
_NewElementBuilder.prototype.__closeBlock.call(this); | ||
this.__appendComment('%-block:' + --this.serializeBlockDepth + '%'); | ||
this.__appendComment('%-b:' + --this.serializeBlockDepth + '%'); | ||
}; | ||
@@ -96,3 +96,3 @@ | ||
// Do we need to run the html tokenizer here? | ||
var first = this.__appendComment('%glimmer%'); | ||
var first = this.__appendComment('%glmr%'); | ||
if (this.element.tagName === 'TABLE') { | ||
@@ -108,3 +108,3 @@ var openIndex = html.indexOf('<'); | ||
_NewElementBuilder.prototype.__appendHTML.call(this, html); | ||
var last = this.__appendComment('%glimmer%'); | ||
var last = this.__appendComment('%glmr%'); | ||
return new runtime.ConcreteBounds(this.element, first, last); | ||
@@ -116,5 +116,5 @@ }; | ||
if (string === '') { | ||
return this.__appendComment('%empty%'); | ||
return this.__appendComment('% %'); | ||
} else if (current && current.nodeType === TEXT_NODE) { | ||
this.__appendComment('%sep%'); | ||
this.__appendComment('%|%'); | ||
} | ||
@@ -171,2 +171,2 @@ return _NewElementBuilder.prototype.__appendText.call(this, string); | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xpbW1lci1ub2RlLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci9ub2RlL2xpYi9ub2RlLWRvbS1oZWxwZXIudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci9ub2RlL2xpYi9zZXJpYWxpemUtYnVpbGRlci50cyJ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0sWUFBWSxHQUFHLFlBQVk7b0JBQzNDLE9BQU8sTUFBTTt1Q0FDRTs7OztxQ0FJakIsd0JBQWE7WUFDZixPQUFPLEtBQUssZ0JBQWdCO2VBQ3pCLElBQUlELHVCQUFlLEtBQUssU0FBUyxPQUFPOzs7b0VBR3BDLFFBQ1g7WUFBSSxVQUFVLFlBQVk7WUFFdEIsV0FBVyxJQUFJO21CQUNWLEtBQUssZ0JBQWdCO2VBQ3ZCLElBQUksV0FBVyxRQUFRLGFBQWEsV0FBVztpQkFDL0MsZ0JBQWdCOztlQUdoQiw2QkFBTSx3QkFBYTs7O3NFQUkxQjtZQUFJLEtBQUssUUFBUSx1QkFBdUIsTUFBTTtpQkFDdkMsUUFBUSxxQkFBcUI7eUNBQzVCOztxQ0FHRjs7O2tFQUdJLEtBQ1Y7WUFBSSxRQUFRLE1BQU07Z0JBQ1osS0FBSyxRQUFRLFlBQVksU0FBUztxQkFDL0IsWUFBWTs7Ozs7cUJBS1osYUFBYyxxQkFBcUI7cUJBQ25DOztpQkFHRixVQUFVOztlQUdWLDZCQUFNLHVCQUFZOzs7OEVBR1QsU0FBeUI7WUFBbUIsa0ZBQW1DO1lBQ3pGLE1BQVE7O1lBQ1YsU0FBUyxJQUFJLGNBQWM7ZUFDeEIsYUFBYSxRQUFRO1lBQ3hCLGFBQWEsU0FBUyxRQUFRO3FDQUM1Qiw2QkFBa0IsU0FBUyxVQUFVOzs7O0VBN0UvQ0U7O0FBaUZBLDBCQUFpQyxLQUFrQixRQUNqRDtXQUFPLGlCQUFpQixpQkFBaUIsS0FBSzs7Ozs7Ozs7Ozs7Ozs7In0= |
@@ -27,3 +27,3 @@ 'use strict'; | ||
let depth = this.serializeBlockDepth++; | ||
this.__appendComment(`%+block:${depth}%`); | ||
this.__appendComment(`%+b:${depth}%`); | ||
super.__openBlock(); | ||
@@ -33,7 +33,7 @@ } | ||
super.__closeBlock(); | ||
this.__appendComment(`%-block:${--this.serializeBlockDepth}%`); | ||
this.__appendComment(`%-b:${--this.serializeBlockDepth}%`); | ||
} | ||
__appendHTML(html) { | ||
// Do we need to run the html tokenizer here? | ||
let first = this.__appendComment('%glimmer%'); | ||
let first = this.__appendComment('%glmr%'); | ||
if (this.element.tagName === 'TABLE') { | ||
@@ -49,3 +49,3 @@ let openIndex = html.indexOf('<'); | ||
super.__appendHTML(html); | ||
let last = this.__appendComment('%glimmer%'); | ||
let last = this.__appendComment('%glmr%'); | ||
return new _runtime.ConcreteBounds(this.element, first, last); | ||
@@ -56,5 +56,5 @@ } | ||
if (string === '') { | ||
return this.__appendComment('%empty%'); | ||
return this.__appendComment('% %'); | ||
} else if (current && current.nodeType === TEXT_NODE) { | ||
this.__appendComment('%sep%'); | ||
this.__appendComment('%|%'); | ||
} | ||
@@ -96,2 +96,2 @@ return super.__appendText(string); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplLWJ1aWxkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci9ub2RlL2xpYi9zZXJpYWxpemUtYnVpbGRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsQUFBTyxBQUFFLEFBQWlCLEFBQTBCLEFBQWMsQUFBZSxBQUFNLEFBQWtCLEFBQUM7O0FBSTFHLE1BQU0sQUFBUyxZQUFHLEFBQUMsQUFBQztBQUVwQixxQkFBcUIsQUFBOEUsUUFDakc7UUFBSSxFQUFFLEFBQU8sU0FBRSxBQUFXLEFBQUUsZ0JBQUcsQUFBTSxBQUFDLEFBRXRDLEFBQUUsQUFBQztRQUFDLEFBQVcsZ0JBQUssQUFBSSxBQUFDLE1BQUMsQUFBQyxBQUN6QixBQUFNO2VBQUMsQUFBTyxRQUFDLEFBQVMsQUFBQyxBQUMzQixBQUFDLEFBQUMsQUFBSTtXQUFDLEFBQU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AgICAgICB0aGlzLmNvbnN0cnVjdGluZyFbJ25lZWRzRXh0cmFDbG9zZSddID0gdHJ1ZTtcbiAgICAgICAgdGhpcy5mbHVzaEVsZW1lbnQoKTtcbiAgICAgIH1cblxuICAgICAgdGhpcy5pblRhYmxlID0gZmFsc2U7XG4gICAgfVxuXG4gICAgcmV0dXJuIHN1cGVyLm9wZW5FbGVtZW50KHRhZyk7XG4gIH1cblxuICBwdXNoUmVtb3RlRWxlbWVudChlbGVtZW50OiBTaW1wbGUuRWxlbWVudCwgY3Vyc29ySWQ6IHN0cmluZywgIG5leHRTaWJsaW5nOiBPcHRpb248U2ltcGxlLk5vZGU+ID0gbnVsbCkge1xuICAgIGxldCB7IGRvbSB9ID0gdGhpcztcbiAgICBsZXQgc2NyaXB0ID0gZG9tLmNyZWF0ZUVsZW1lbnQoJ3NjcmlwdCcpO1xuICAgIHNjcmlwdC5zZXRBdHRyaWJ1dGUoJ2dsbXInLCBjdXJzb3JJZCk7XG4gICAgZG9tLmluc2VydEJlZm9yZShlbGVtZW50LCBzY3JpcHQsIG5leHRTaWJsaW5nKTtcbiAgICBzdXBlci5wdXNoUmVtb3RlRWxlbWVudChlbGVtZW50LCBjdXJzb3JJZCwgbmV4dFNpYmxpbmcpO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBzZXJpYWxpemVCdWlsZGVyKGVudjogRW52aXJvbm1lbnQsIGN1cnNvcjogeyBlbGVtZW50OiBTaW1wbGUuRWxlbWVudCwgbmV4dFNpYmxpbmc6IE9wdGlvbjxTaW1wbGUuTm9kZT4gfSk6IEVsZW1lbnRCdWlsZGVyIHtcbiAgcmV0dXJuIFNlcmlhbGl6ZUJ1aWxkZXIuZm9ySW5pdGlhbFJlbmRlcihlbnYsIGN1cnNvcik7XG59XG4iXX0= |
@@ -63,3 +63,3 @@ "use strict"; | ||
var depth = this.serializeBlockDepth++; | ||
this.__appendComment('%+block:' + depth + '%'); | ||
this.__appendComment('%+b:' + depth + '%'); | ||
_NewElementBuilder.prototype.__openBlock.call(this); | ||
@@ -70,3 +70,3 @@ }; | ||
_NewElementBuilder.prototype.__closeBlock.call(this); | ||
this.__appendComment('%-block:' + --this.serializeBlockDepth + '%'); | ||
this.__appendComment('%-b:' + --this.serializeBlockDepth + '%'); | ||
}; | ||
@@ -76,3 +76,3 @@ | ||
// Do we need to run the html tokenizer here? | ||
var first = this.__appendComment('%glimmer%'); | ||
var first = this.__appendComment('%glmr%'); | ||
if (this.element.tagName === 'TABLE') { | ||
@@ -88,3 +88,3 @@ var openIndex = html.indexOf('<'); | ||
_NewElementBuilder.prototype.__appendHTML.call(this, html); | ||
var last = this.__appendComment('%glimmer%'); | ||
var last = this.__appendComment('%glmr%'); | ||
return new _runtime.ConcreteBounds(this.element, first, last); | ||
@@ -96,5 +96,5 @@ }; | ||
if (string === '') { | ||
return this.__appendComment('%empty%'); | ||
return this.__appendComment('% %'); | ||
} else if (current && current.nodeType === TEXT_NODE) { | ||
this.__appendComment('%sep%'); | ||
this.__appendComment('%|%'); | ||
} | ||
@@ -144,2 +144,2 @@ return _NewElementBuilder.prototype.__appendText.call(this, string); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplLWJ1aWxkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci9ub2RlL2xpYi9zZXJpYWxpemUtYnVpbGRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsQUFBTyxBQUFFLEFBQWlCLEFBQTBCLEFBQWMsQUFBZSxBQUFNLEFBQWtCLEFBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFJMUcsSUFBTSxBQUFTLFlBQUcsQUFBQyxBQUFDO0FBRXBCLHFCQUFxQixBQUE4RSxRQUNqRyxBQUFJO1F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1c2hSZW1vdGVFbGVtZW50KGVsZW1lbnQsIGN1cnNvcklkLCBuZXh0U2libGluZyk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHNlcmlhbGl6ZUJ1aWxkZXIoZW52OiBFbnZpcm9ubWVudCwgY3Vyc29yOiB7IGVsZW1lbnQ6IFNpbXBsZS5FbGVtZW50LCBuZXh0U2libGluZzogT3B0aW9uPFNpbXBsZS5Ob2RlPiB9KTogRWxlbWVudEJ1aWxkZXIge1xuICByZXR1cm4gU2VyaWFsaXplQnVpbGRlci5mb3JJbml0aWFsUmVuZGVyKGVudiwgY3Vyc29yKTtcbn1cbiJdfQ== |
@@ -19,3 +19,3 @@ import { NewElementBuilder, ConcreteBounds } from "@glimmer/runtime"; | ||
let depth = this.serializeBlockDepth++; | ||
this.__appendComment(`%+block:${depth}%`); | ||
this.__appendComment(`%+b:${depth}%`); | ||
super.__openBlock(); | ||
@@ -25,7 +25,7 @@ } | ||
super.__closeBlock(); | ||
this.__appendComment(`%-block:${--this.serializeBlockDepth}%`); | ||
this.__appendComment(`%-b:${--this.serializeBlockDepth}%`); | ||
} | ||
__appendHTML(html) { | ||
// Do we need to run the html tokenizer here? | ||
let first = this.__appendComment('%glimmer%'); | ||
let first = this.__appendComment('%glmr%'); | ||
if (this.element.tagName === 'TABLE') { | ||
@@ -41,3 +41,3 @@ let openIndex = html.indexOf('<'); | ||
super.__appendHTML(html); | ||
let last = this.__appendComment('%glimmer%'); | ||
let last = this.__appendComment('%glmr%'); | ||
return new ConcreteBounds(this.element, first, last); | ||
@@ -48,5 +48,5 @@ } | ||
if (string === '') { | ||
return this.__appendComment('%empty%'); | ||
return this.__appendComment('% %'); | ||
} else if (current && current.nodeType === TEXT_NODE) { | ||
this.__appendComment('%sep%'); | ||
this.__appendComment('%|%'); | ||
} | ||
@@ -88,2 +88,2 @@ return super.__appendText(string); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJ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sIG5leHRTaWJsaW5nKTtcbiAgICBzdXBlci5wdXNoUmVtb3RlRWxlbWVudChlbGVtZW50LCBjdXJzb3JJZCwgbmV4dFNpYmxpbmcpO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBzZXJpYWxpemVCdWlsZGVyKGVudjogRW52aXJvbm1lbnQsIGN1cnNvcjogeyBlbGVtZW50OiBTaW1wbGUuRWxlbWVudCwgbmV4dFNpYmxpbmc6IE9wdGlvbjxTaW1wbGUuTm9kZT4gfSk6IEVsZW1lbnRCdWlsZGVyIHtcbiAgcmV0dXJuIFNlcmlhbGl6ZUJ1aWxkZXIuZm9ySW5pdGlhbFJlbmRlcihlbnYsIGN1cnNvcik7XG59XG4iXX0= |
@@ -37,3 +37,3 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } | ||
var depth = this.serializeBlockDepth++; | ||
this.__appendComment('%+block:' + depth + '%'); | ||
this.__appendComment('%+b:' + depth + '%'); | ||
_NewElementBuilder.prototype.__openBlock.call(this); | ||
@@ -44,3 +44,3 @@ }; | ||
_NewElementBuilder.prototype.__closeBlock.call(this); | ||
this.__appendComment('%-block:' + --this.serializeBlockDepth + '%'); | ||
this.__appendComment('%-b:' + --this.serializeBlockDepth + '%'); | ||
}; | ||
@@ -50,3 +50,3 @@ | ||
// Do we need to run the html tokenizer here? | ||
var first = this.__appendComment('%glimmer%'); | ||
var first = this.__appendComment('%glmr%'); | ||
if (this.element.tagName === 'TABLE') { | ||
@@ -62,3 +62,3 @@ var openIndex = html.indexOf('<'); | ||
_NewElementBuilder.prototype.__appendHTML.call(this, html); | ||
var last = this.__appendComment('%glimmer%'); | ||
var last = this.__appendComment('%glmr%'); | ||
return new ConcreteBounds(this.element, first, last); | ||
@@ -70,5 +70,5 @@ }; | ||
if (string === '') { | ||
return this.__appendComment('%empty%'); | ||
return this.__appendComment('% %'); | ||
} else if (current && current.nodeType === TEXT_NODE) { | ||
this.__appendComment('%sep%'); | ||
this.__appendComment('%|%'); | ||
} | ||
@@ -118,2 +118,2 @@ return _NewElementBuilder.prototype.__appendText.call(this, string); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplLWJ1aWxkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9AZ2xpbW1lci9ub2RlL2xpYi9zZXJpYWxpemUtYnVpbGRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBLEFBQU8sU0FBRSxBQUFpQixtQkFBMEIsQUFBYyxBQUFlLHNCQUFNLEFBQWtCLEFBQUM7QUFJMUcsSUFBTSxBQUFTLFlBQUcsQUFBQyxBQUFDO0FBRXBCLHFCQUFxQixBQUE4RTtBQUNqRyxBQUFJLFFBQUUsQUFBTyxVQUFrQixBQUFNLEFBQUMsQUFFdEMsQUFBRSxBQUFDO1FBRlksQUFBVyxBQUFFOztRQUV4QixBQUFXLGdCQUFLLEFBQUksQUFBQyxNQUFDLEFBQUMsQUFDekIsQUFBTTtlQUFDLEFBQU8sUUFBQyxBQUFTLEFBQUMsQUFDM0IsQUFBQyxBQUFDLEFBQUk7V0FBQyxBQUFDLEFBQ04sQUFBTTtlQUFDLEFBQVcsWUFBQyxBQUFlLEFBQUMsQUFDckMsQUFBQyxBQUNIO0FBQUM7QUFFRDs7SUFBdUI7Ozs7OztvRkFDYjs7Y0FBbUIsc0JBQUcsQUFBQyxBQUFDLEFBQ3hCO2NBQU8sVUFBRyxBQUFLLEFBQUMsQUE4RTFCLEFBQUM7O0FBNUVDLEFBQVc7O29FQUNUO1lBQUksQUFBSyxRQUFHLEFBQUksS0FBQyxBQUFtQixBQUFFLEFBQ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sZSA9IGZhbHNlO1xuICAgIH1cblxuICAgIHJldHVybiBzdXBlci5vcGVuRWxlbWVudCh0YWcpO1xuICB9XG5cbiAgcHVzaFJlbW90ZUVsZW1lbnQoZWxlbWVudDogU2ltcGxlLkVsZW1lbnQsIGN1cnNvcklkOiBzdHJpbmcsICBuZXh0U2libGluZzogT3B0aW9uPFNpbXBsZS5Ob2RlPiA9IG51bGwpIHtcbiAgICBsZXQgeyBkb20gfSA9IHRoaXM7XG4gICAgbGV0IHNjcmlwdCA9IGRvbS5jcmVhdGVFbGVtZW50KCdzY3JpcHQnKTtcbiAgICBzY3JpcHQuc2V0QXR0cmlidXRlKCdnbG1yJywgY3Vyc29ySWQpO1xuICAgIGRvbS5pbnNlcnRCZWZvcmUoZWxlbWVudCwgc2NyaXB0LCBuZXh0U2libGluZyk7XG4gICAgc3VwZXIucHVzaFJlbW90ZUVsZW1lbnQoZWxlbWVudCwgY3Vyc29ySWQsIG5leHRTaWJsaW5nKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gc2VyaWFsaXplQnVpbGRlcihlbnY6IEVudmlyb25tZW50LCBjdXJzb3I6IHsgZWxlbWVudDogU2ltcGxlLkVsZW1lbnQsIG5leHRTaWJsaW5nOiBPcHRpb248U2ltcGxlLk5vZGU+IH0pOiBFbGVtZW50QnVpbGRlciB7XG4gIHJldHVybiBTZXJpYWxpemVCdWlsZGVyLmZvckluaXRpYWxSZW5kZXIoZW52LCBjdXJzb3IpO1xufVxuIl19 |
{ | ||
"name": "@glimmer/node", | ||
"version": "0.30.5", | ||
"version": "0.31.0", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/node", | ||
"dependencies": { | ||
"@glimmer/runtime": "^0.30.5", | ||
"@glimmer/interfaces": "^0.30.5", | ||
"@glimmer/runtime": "^0.31.0", | ||
"@glimmer/interfaces": "^0.31.0", | ||
"simple-dom": "^0.3.0" | ||
@@ -13,3 +13,3 @@ }, | ||
"@types/qunit": "^2.0.31", | ||
"@glimmer/compiler": "^0.30.5" | ||
"@glimmer/compiler": "^0.31.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "main": "dist/commonjs/es5/index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
93486
+ Added@glimmer/encoder@0.31.0(transitive)
+ Added@glimmer/interfaces@0.31.0(transitive)
+ Added@glimmer/low-level@0.31.0(transitive)
+ Added@glimmer/opcode-compiler@0.31.0(transitive)
+ Added@glimmer/program@0.31.0(transitive)
+ Added@glimmer/reference@0.31.0(transitive)
+ Added@glimmer/runtime@0.31.0(transitive)
+ Added@glimmer/util@0.31.0(transitive)
+ Added@glimmer/vm@0.31.0(transitive)
+ Added@glimmer/wire-format@0.31.0(transitive)
- Removed@glimmer/encoder@0.30.5(transitive)
- Removed@glimmer/interfaces@0.30.5(transitive)
- Removed@glimmer/low-level@0.30.5(transitive)
- Removed@glimmer/opcode-compiler@0.30.5(transitive)
- Removed@glimmer/program@0.30.5(transitive)
- Removed@glimmer/reference@0.30.5(transitive)
- Removed@glimmer/runtime@0.30.5(transitive)
- Removed@glimmer/util@0.30.5(transitive)
- Removed@glimmer/vm@0.30.5(transitive)
- Removed@glimmer/wire-format@0.30.5(transitive)
Updated@glimmer/interfaces@^0.31.0
Updated@glimmer/runtime@^0.31.0