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

typed-dom

Package Overview
Dependencies
Maintainers
1
Versions
350
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-dom - npm Package Compare versions

Comparing version 0.0.48 to 0.0.49

58

dist/typed-dom.js

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

/*! typed-dom v0.0.48 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.49 https://github.com/falsandtru/typed-dom | (c) 2017, falsandtru | (Apache-2.0 AND MPL-2.0) License */
require = function e(t, n, r) {

@@ -44,2 +44,28 @@ function s(o, u) {

};
var __read = this && this.__read || function (o, n) {
var m = typeof Symbol === 'function' && o[Symbol.iterator];
if (!m)
return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
ar.push(r.value);
} catch (error) {
e = { error: error };
} finally {
try {
if (r && !r.done && (m = i['return']))
m.call(i);
} finally {
if (e)
throw e.error;
}
}
return ar;
};
var __spread = this && this.__spread || function () {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
};
Object.defineProperty(exports, '__esModule', { value: true });

@@ -99,3 +125,3 @@ var El = function () {

style.innerHTML = style.innerHTML.replace(/^\s*\$scope(?!\w)/gm, '#' + element_.id);
void Array.from(style.querySelectorAll('*')).forEach(function (el) {
void __spread(style.querySelectorAll('*')).forEach(function (el) {
return void el.remove();

@@ -414,2 +440,28 @@ });

};
var __read = this && this.__read || function (o, n) {
var m = typeof Symbol === 'function' && o[Symbol.iterator];
if (!m)
return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
ar.push(r.value);
} catch (error) {
e = { error: error };
} finally {
try {
if (r && !r.done && (m = i['return']))
m.call(i);
} finally {
if (e)
throw e.error;
}
}
return ar;
};
var __spread = this && this.__spread || function () {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
};
Object.defineProperty(exports, '__esModule', { value: true });

@@ -459,3 +511,3 @@ var noop_1 = require('./noop');

return;
void Array.from(target.querySelectorAll(selector)).filter(function (el) {
void __spread(target.querySelectorAll(selector)).filter(function (el) {
return el === cx;

@@ -462,0 +514,0 @@ }).forEach(function (el) {

4

dist/typed-dom.min.js

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

/*! typed-dom v0.0.48 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
require=function e(t,r,n){function i(c,u){if(!r[c]){if(!t[c]){var a="function"==typeof require&&require;if(!u&&a)return a(c,!0);if(o)return o(c,!0);var s=new Error("Cannot find module '"+c+"'");throw s.code="MODULE_NOT_FOUND",s}var d=r[c]={exports:{}};t[c][0].call(d.exports,function(e){var r=t[c][1][e];return i(r||e)},d,d.exports,e,t,r,n)}return r[c].exports}for(var o="function"==typeof require&&require,c=0;c<n.length;c++)i(n[c]);return i}({1:[function(e,t,r){},{}],2:[function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function e(e,t){function r(){for(;e.childNodes.length>0;)e.removeChild(e.firstChild)}function i(t){e.id.match(/^[\w\-]+$/)&&(t.innerHTML=t.innerHTML.replace(/^\s*\$scope(?!\w)/gm,"#"+e.id),Array.from(t.querySelectorAll("*")).forEach(function(e){return void e.remove()}))}var o=this;switch(this.element_=e,this.children_=t,this.mode=void 0===this.children_?"void":"string"==typeof this.children_?"text":Array.isArray(this.children_)?"collection":"struct",this.structkeys="struct"===this.mode?Object.keys(this.children_):[],this.tag,this.mode){case"void":return;case"text":return r(),this.children_=document.createTextNode(""),this.element_.appendChild(this.children_),void(this.children=t);case"collection":return r(),e.id&&t.forEach(function(e){var t=e.element;return t instanceof HTMLStyleElement&&void i(t)}),this.children_=Object.freeze([]),void(this.children=t);case"struct":return r(),e.id&&Object.keys(t).map(function(e){return t[e]}).forEach(function(e){var t=e.element;return t instanceof HTMLStyleElement&&void i(t)}),this.children_=this.observe(n({},t)),void this.structkeys.forEach(function(e){return void o.element_.appendChild(t[e].element)})}}return Object.defineProperty(e.prototype,"element",{get:function(){return this.element_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){switch(this.mode){case"text":return this.children_.data;default:return this.children_}},set:function(e){var t=this;switch(this.mode){case"void":return;case"text":if(e===this.children_.data)return;return void(this.children_.data=e);case"collection":if(e===this.children_)return;if(!Object.isFrozen(this.children_))throw new Error("TypedHTMLElement collections cannot be updated recursively.");return e.reduce(function(e,t){var r=e.indexOf(t);return-1===r?e:(e.splice(r,1),e)},this.children_.slice()).forEach(function(e){return void e.element.remove()}),this.children_=[],e.forEach(function(e,r){return t.children_[r]=e,void t.element_.appendChild(e.element)}),void Object.freeze(this.children_);case"struct":if(e===this.children_)return;return void this.structkeys.forEach(function(r){return t.children_[r]=e[r]})}},enumerable:!0,configurable:!0}),e.prototype.observe=function(e){var t=this;return Object.defineProperties(e,this.structkeys.reduce(function(r,n){var i=e[n];return r[n]={configurable:!0,enumerable:!0,get:function(){return i},set:function(e){var r=i;e!==r&&(i=e,t.element_.replaceChild(e.element,r.element))}},r},{}))},e}();r.El=i},{}],3:[function(e,t,r){"use strict";function n(e,t,r){var n=t();if(e!==n.tagName&&e!==n.tagName.toLowerCase())throw new Error('Tag name must be "'+e+'" but "'+n.tagName.toLowerCase()+'".');return r?Object.keys(r).reduce(function(e,t){return e.setAttribute(t,r[t]||""),e},n):n}Object.defineProperty(r,"__esModule",{value:!0});var i=e("./builder");r.TypedHTML=["a","applet","area","audio","base","basefont","blockquote","body","br","button","canvas","caption","col","colgroup","data","datalist","del","dir","div","dl","embed","fieldset","font","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","hr","html","iframe","img","input","ins","isindex","label","legend","li","link","listing","map","marquee","menu","meta","meter","nextid","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","script","select","source","span","style","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","ul","video","x-ms-webview","xmp","abbr","acronym","address","article","aside","b","bdo","big","center","cite","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","keygen","mark","nav","nobr","noframes","noscript","plaintext","rt","ruby","s","samp","section","small","strike","strong","sub","sup","tt","u","var","wbr","create","any"].reduce(function(e,t){return e[t]="create"===t?function(e,t,n,i){return void 0===t&&(t=function(){return document.createElement(e)}),void 0===n&&(n=function(){return document.createElement(e)}),void 0===i&&(i=function(){return document.createElement(e)}),r.TypedHTML.any(t,n,i,e)}:function(e,r,o,c){switch(void 0===c&&(c=t),c="any"===t?c:t,typeof e){case"undefined":return new i.El(n(c,function(){return document.createElement(c)}),void 0);case"function":return new i.El(n(c,e),void 0);case"string":return new i.El(n(c,r||function(){return document.createElement(c)}),e);case"object":return o="function"==typeof r?r:o||function(){return document.createElement(c)},Object.keys(e).slice(-1).every(function(t){return void 0===t||"object"==typeof e[t]})?new i.El(n(c,o),e):new i.El(n(c,o,e),r===o?void 0:r);default:throw new TypeError("Invalid arguments: ["+e+", "+r+", "+o+"]")}},e},{})},{"./builder":2}],4:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./dom/html");r.default=n.TypedHTML,r.TypedHTML=n.TypedHTML,function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(e("./util/dom"))},{"./dom/html":3,"./util/dom":5}],5:[function(e,t,r){"use strict";function n(e,t,n,i){function c(e){"object"==typeof i&&i.passive&&(e.preventDefault=u.noop),r.currentTargets.set(e,e.currentTarget),n(e)}void 0===i&&(i=!1),e.addEventListener(t,c,o(i));var a=function(){return a=u.noop,void e.removeEventListener(t,c,o(i))};return function(){return void a()}}function i(e,t,r,i){void 0===i&&(i=!1);var o=n(e,t,function(e){o(),r(e)},i);return function(){return void o()}}function o(e){return a?e:"boolean"==typeof e?e:e.capture}var c=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};Object.defineProperty(r,"__esModule",{value:!0});var u=e("./noop");r.currentTargets=new WeakMap,r.bind=n,r.once=i,r.delegate=function(e,t,r,o,u){return void 0===u&&(u={}),n(e instanceof Document?e.documentElement:e,r,function(n){var c=n.target.closest(t);c&&Array.from(e.querySelectorAll(t)).filter(function(e){return e===c}).forEach(function(e){return void i(e,r,function(e){o(e)},u)})},c({},u,{capture:!0}))};var a=!1;try{document.createElement("div").addEventListener("test",function(){},{get capture(){return a=!0}})}catch(e){}},{"./noop":6}],6:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.noop=function(){}},{}],"typed-dom":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(e("./src/export"));var n=e("./src/export");r.default=n.default},{"./src/export":4}]},{},[1,"typed-dom"]);
/*! typed-dom v0.0.49 https://github.com/falsandtru/typed-dom | (c) 2017, falsandtru | (Apache-2.0 AND MPL-2.0) License */
require=function e(t,r,n){function i(c,u){if(!r[c]){if(!t[c]){var a="function"==typeof require&&require;if(!u&&a)return a(c,!0);if(o)return o(c,!0);var s=new Error("Cannot find module '"+c+"'");throw s.code="MODULE_NOT_FOUND",s}var d=r[c]={exports:{}};t[c][0].call(d.exports,function(e){var r=t[c][1][e];return i(r||e)},d,d.exports,e,t,r,n)}return r[c].exports}for(var o="function"==typeof require&&require,c=0;c<n.length;c++)i(n[c]);return i}({1:[function(e,t,r){},{}],2:[function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)c.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return c},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function e(e,t){function r(){for(;e.childNodes.length>0;)e.removeChild(e.firstChild)}function i(t){e.id.match(/^[\w\-]+$/)&&(t.innerHTML=t.innerHTML.replace(/^\s*\$scope(?!\w)/gm,"#"+e.id),o(t.querySelectorAll("*")).forEach(function(e){return void e.remove()}))}var c=this;switch(this.element_=e,this.children_=t,this.mode=void 0===this.children_?"void":"string"==typeof this.children_?"text":Array.isArray(this.children_)?"collection":"struct",this.structkeys="struct"===this.mode?Object.keys(this.children_):[],this.tag,this.mode){case"void":return;case"text":return r(),this.children_=document.createTextNode(""),this.element_.appendChild(this.children_),void(this.children=t);case"collection":return r(),e.id&&t.forEach(function(e){var t=e.element;return t instanceof HTMLStyleElement&&void i(t)}),this.children_=Object.freeze([]),void(this.children=t);case"struct":return r(),e.id&&Object.keys(t).map(function(e){return t[e]}).forEach(function(e){var t=e.element;return t instanceof HTMLStyleElement&&void i(t)}),this.children_=this.observe(n({},t)),void this.structkeys.forEach(function(e){return void c.element_.appendChild(t[e].element)})}}return Object.defineProperty(e.prototype,"element",{get:function(){return this.element_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){switch(this.mode){case"text":return this.children_.data;default:return this.children_}},set:function(e){var t=this;switch(this.mode){case"void":return;case"text":if(e===this.children_.data)return;return void(this.children_.data=e);case"collection":if(e===this.children_)return;if(!Object.isFrozen(this.children_))throw new Error("TypedHTMLElement collections cannot be updated recursively.");return e.reduce(function(e,t){var r=e.indexOf(t);return-1===r?e:(e.splice(r,1),e)},this.children_.slice()).forEach(function(e){return void e.element.remove()}),this.children_=[],e.forEach(function(e,r){return t.children_[r]=e,void t.element_.appendChild(e.element)}),void Object.freeze(this.children_);case"struct":if(e===this.children_)return;return void this.structkeys.forEach(function(r){return t.children_[r]=e[r]})}},enumerable:!0,configurable:!0}),e.prototype.observe=function(e){var t=this;return Object.defineProperties(e,this.structkeys.reduce(function(r,n){var i=e[n];return r[n]={configurable:!0,enumerable:!0,get:function(){return i},set:function(e){var r=i;e!==r&&(i=e,t.element_.replaceChild(e.element,r.element))}},r},{}))},e}();r.El=c},{}],3:[function(e,t,r){"use strict";function n(e,t,r){var n=t();if(e!==n.tagName&&e!==n.tagName.toLowerCase())throw new Error('Tag name must be "'+e+'" but "'+n.tagName.toLowerCase()+'".');return r?Object.keys(r).reduce(function(e,t){return e.setAttribute(t,r[t]||""),e},n):n}Object.defineProperty(r,"__esModule",{value:!0});var i=e("./builder");r.TypedHTML=["a","applet","area","audio","base","basefont","blockquote","body","br","button","canvas","caption","col","colgroup","data","datalist","del","dir","div","dl","embed","fieldset","font","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","hr","html","iframe","img","input","ins","isindex","label","legend","li","link","listing","map","marquee","menu","meta","meter","nextid","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","script","select","source","span","style","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","ul","video","x-ms-webview","xmp","abbr","acronym","address","article","aside","b","bdo","big","center","cite","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","keygen","mark","nav","nobr","noframes","noscript","plaintext","rt","ruby","s","samp","section","small","strike","strong","sub","sup","tt","u","var","wbr","create","any"].reduce(function(e,t){return e[t]="create"===t?function(e,t,n,i){return void 0===t&&(t=function(){return document.createElement(e)}),void 0===n&&(n=function(){return document.createElement(e)}),void 0===i&&(i=function(){return document.createElement(e)}),r.TypedHTML.any(t,n,i,e)}:function(e,r,o,c){switch(void 0===c&&(c=t),c="any"===t?c:t,typeof e){case"undefined":return new i.El(n(c,function(){return document.createElement(c)}),void 0);case"function":return new i.El(n(c,e),void 0);case"string":return new i.El(n(c,r||function(){return document.createElement(c)}),e);case"object":return o="function"==typeof r?r:o||function(){return document.createElement(c)},Object.keys(e).slice(-1).every(function(t){return void 0===t||"object"==typeof e[t]})?new i.El(n(c,o),e):new i.El(n(c,o,e),r===o?void 0:r);default:throw new TypeError("Invalid arguments: ["+e+", "+r+", "+o+"]")}},e},{})},{"./builder":2}],4:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./dom/html");r.default=n.TypedHTML,r.TypedHTML=n.TypedHTML,function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(e("./util/dom"))},{"./dom/html":3,"./util/dom":5}],5:[function(e,t,r){"use strict";function n(e,t,n,i){function c(e){"object"==typeof i&&i.passive&&(e.preventDefault=s.noop),r.currentTargets.set(e,e.currentTarget),n(e)}void 0===i&&(i=!1),e.addEventListener(t,c,o(i));var u=function(){return u=s.noop,void e.removeEventListener(t,c,o(i))};return function(){return void u()}}function i(e,t,r,i){void 0===i&&(i=!1);var o=n(e,t,function(e){o(),r(e)},i);return function(){return void o()}}function o(e){return d?e:"boolean"==typeof e?e:e.capture}var c=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},u=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)c.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return c},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e};Object.defineProperty(r,"__esModule",{value:!0});var s=e("./noop");r.currentTargets=new WeakMap,r.bind=n,r.once=i,r.delegate=function(e,t,r,o,u){return void 0===u&&(u={}),n(e instanceof Document?e.documentElement:e,r,function(n){var c=n.target.closest(t);c&&a(e.querySelectorAll(t)).filter(function(e){return e===c}).forEach(function(e){return void i(e,r,function(e){o(e)},u)})},c({},u,{capture:!0}))};var d=!1;try{document.createElement("div").addEventListener("test",function(){},{get capture(){return d=!0}})}catch(e){}},{"./noop":6}],6:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.noop=function(){}},{}],"typed-dom":[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(e("./src/export"));var n=e("./src/export");r.default=n.default},{"./src/export":4}]},{},[1,"typed-dom"]);

@@ -11,2 +11,3 @@ const gulp = require('gulp');

const browserify = require('browserify');
const watchify = require('watchify');
const tsify = require('tsify');

@@ -45,3 +46,3 @@ const pump = require('pump');

banner: [
`/*! ${pkg.name} v${pkg.version} ${pkg.repository.url} | (c) 2016, ${pkg.author} | ${pkg.license} License */`,
`/*! ${pkg.name} v${pkg.version} ${pkg.repository.url} | (c) ${new Date().getUTCFullYear()}, ${pkg.author} | ${pkg.license} License */`,
''

@@ -54,18 +55,31 @@ ].join('\n'),

function compile(paths, force) {
function compile({ src, dest }, opts = {}, cb = b => b) {
let done = true;
return browserify(Object.values(paths).map(p => glob.sync(p)))
const force = !!opts.plugin && opts.plugin.includes(watchify);
const b = browserify(Object.values(src).map(p => glob.sync(p)), {
cache: {},
packageCache: {},
...opts,
})
.require(`./index.ts`, { expose: pkg.name })
.plugin(tsify, Object.assign({ global: true }, require('./tsconfig.json').compilerOptions))
.bundle()
.on("error", err => done = console.log(err + ''))
.pipe(source(`${pkg.name}.js`))
.pipe(buffer())
.once("finish", () => done || force || process.exit(1));
.plugin(tsify, { global: true, ...require('./tsconfig.json').compilerOptions })
.on('update', () => void cb(bundle()));
return cb(bundle());
function bundle() {
console.time('bundle');
return b
.bundle()
.on("error", err => done = console.log(err + ''))
.pipe(source(`${pkg.name}.js`))
.pipe(buffer())
.once('finish', () => console.timeEnd('bundle'))
.once("finish", () => done || force || process.exit(1))
.pipe(gulp.dest(dest));
}
}
gulp.task('ts:watch', function () {
gulp.watch(config.ts.test.src, () => {
return compile(config.ts.test.src, true)
.pipe(gulp.dest(config.ts.test.dest));
return compile(config.ts.test, {
plugin: [watchify],
});

@@ -75,16 +89,16 @@ });

gulp.task('ts:test', function () {
return compile(config.ts.test.src)
.pipe(gulp.dest(config.ts.test.dest));
return compile(config.ts.test);
});
gulp.task('ts:dist', function (done) {
pump([
compile(config.ts.dist.src),
$.unassert(),
$.header(config.banner),
gulp.dest(config.ts.dist.dest),
$.rename({ extname: '.min.js' }),
$.uglify({ output: { comments: 'all' } }),
gulp.dest(config.ts.dist.dest)
], done);
gulp.task('ts:dist', function () {
return compile(config.ts.dist, {}, b =>
pump([
b,
$.unassert(),
$.header(config.banner),
gulp.dest(config.ts.dist.dest),
$.rename({ extname: '.min.js' }),
$.uglify({ output: { comments: 'all' } }),
gulp.dest(config.ts.dist.dest)
]));
});

@@ -106,6 +120,6 @@

browsers: config.browsers,
reporters: ['dots', 'coverage'],
preprocessors: {
'dist/*.js': ['coverage', 'espower']
},
reporters: ['dots', 'coverage'],
singleRun: true

@@ -119,6 +133,6 @@ }, done).start();

browsers: config.browsers,
reporters: ['dots', 'coverage', 'coveralls'],
preprocessors: {
'dist/*.js': ['coverage', 'espower']
},
reporters: ['dots', 'coverage', 'coveralls'],
singleRun: true

@@ -142,9 +156,9 @@ }, done).start();

gulp.task('watch', ['clean'], function () {
gulp.task('watch', ['clean'], function (done) {
seq(
'ts:test',
[
'ts:watch',
'karma:watch'
]
],
done
);

@@ -158,5 +172,3 @@ });

'ts:dist',
function () {
done();
}
done
);

@@ -177,6 +189,4 @@ });

'dist',
function () {
done();
}
done
);
});

@@ -6,3 +6,3 @@ module.exports = function (config) {

files: [
{ pattern: 'https://cdn.polyfill.io/v2/polyfill.js?features=default,WeakMap,WeakSet', watched: false, served: false, included: true },
{ pattern: 'https://cdn.polyfill.io/v2/polyfill.js?flags=gated&features=default,NodeList.prototype.@@iterator', watched: false, served: false, included: true },
{ pattern: 'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js', watched: false, served: false, included: true },

@@ -26,5 +26,12 @@ { pattern: 'node_modules/power-assert/build/power-assert.js', watched: true, served: true, included: true },

},
includeAllSources: true,
instrumenters: {
isparta: require('isparta')
},
instrumenter: {
'**/*.js': 'isparta'
},
reporters: [
{ type: 'lcov' },
{ type: 'text-summary', subdir: '.', file: 'summary.txt' }
{ type: 'text-summary', subdir: '.', file: 'summary.txt' },
]

@@ -34,4 +41,4 @@ },

autoWatchBatchDelay: 500,
browsers: ['Chrome']
browsers: ['Chrome'],
});
};
{
"name": "typed-dom",
"version": "0.0.48",
"version": "0.0.49",
"description": "Static typed dom component builder.",

@@ -45,2 +45,3 @@ "private": false,

"gulp-unassert": "^1.0.1",
"isparta": "^4.0.0",
"karma": "1.7.1",

@@ -59,8 +60,9 @@ "karma-chrome-launcher": "^2.2.0",

"pump": "^1.0.2",
"run-sequence": "^2.1.0",
"spica": "0.0.105",
"run-sequence": "^2.2.0",
"spica": "0.0.106",
"tsify": "^3.0.3",
"typescript": "2.6.0-dev.20170916",
"typescript": "2.6.0-dev.20170922",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
"vinyl-source-stream": "^1.1.0",
"watchify": "^3.9.0"
},

@@ -67,0 +69,0 @@ "scripts": {

@@ -68,3 +68,3 @@ export type ElChildren =

style.innerHTML = style.innerHTML.replace(/^\s*\$scope(?!\w)/gm, `#${element_.id}`);
void Array.from(style.querySelectorAll('*'))
void [...style.querySelectorAll('*')]
.forEach(el =>

@@ -71,0 +71,0 @@ void el.remove());

@@ -39,3 +39,3 @@ import { noop } from './noop';

if (!cx) return;
void Array.from(target.querySelectorAll(selector) as NodeListOf<HTMLElement>)
void [...target.querySelectorAll<HTMLElement>(selector)]
.filter(el => el === cx)

@@ -42,0 +42,0 @@ .forEach(el =>

@@ -79,4 +79,4 @@ import TypedHTML from '../../index';

void Sequence.zip(
Sequence.cycle([Array(3).fill(0).map(() => TypedHTML.li(``)).concat(ss)]),
Sequence.cycle([Array(3).fill(0).map(() => TypedHTML.li(``)).concat(ss)]))
Sequence.cycle([[...Array(3).fill(0).map(() => TypedHTML.li(``)), ...ss]]),
Sequence.cycle([[...Array(3).fill(0).map(() => TypedHTML.li(``)), ...ss]]))
.take(1000)

@@ -83,0 +83,0 @@ .map(lss =>

@@ -6,4 +6,6 @@ {

"dom",
"es6"
"dom.iterable",
"es7"
],
"downlevelIteration": true,
"module": "commonjs",

@@ -10,0 +12,0 @@ "moduleResolution": "node",

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