typed-dom
Advanced tools
Comparing version 0.0.340 to 0.0.341
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -16,3 +16,3 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
/***/ 5406: | ||
/***/ 7731: | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -25,30 +25,7 @@ | ||
})); | ||
exports.ObjectSetPrototypeOf = exports.ObjectGetPrototypeOf = exports.ObjectCreate = exports.ObjectAssign = exports.toString = exports.isEnumerable = exports.isPrototypeOf = exports.hasOwnProperty = exports.isArray = exports.sqrt = exports.log10 = exports.log2 = exports.log = exports.tan = exports.cos = exports.sign = exports.round = exports.random = exports.min = exports.max = exports.floor = exports.ceil = exports.abs = exports.PI = exports.parseInt = exports.parseFloat = exports.isSafeInteger = exports.isNaN = exports.isInteger = exports.isFinite = exports.EPSILON = exports.MIN_VALUE = exports.MIN_SAFE_INTEGER = exports.MAX_VALUE = exports.MAX_SAFE_INTEGER = void 0; | ||
exports.MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER, exports.MAX_VALUE = Number.MAX_VALUE, exports.MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER, exports.MIN_VALUE = Number.MIN_VALUE, exports.EPSILON = Number.EPSILON, exports.isFinite = Number.isFinite, exports.isInteger = Number.isInteger, exports.isNaN = Number.isNaN, exports.isSafeInteger = Number.isSafeInteger, exports.parseFloat = Number.parseFloat, exports.parseInt = Number.parseInt; | ||
exports.PI = Math.PI, exports.abs = Math.abs, exports.ceil = Math.ceil, exports.floor = Math.floor, exports.max = Math.max, exports.min = Math.min, exports.random = Math.random, exports.round = Math.round, exports.sign = Math.sign, exports.cos = Math.cos, exports.tan = Math.tan, exports.log = Math.log, exports.log2 = Math.log2, exports.log10 = Math.log10, exports.sqrt = Math.sqrt; | ||
exports.isArray = Array.isArray; | ||
exports.hasOwnProperty = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty); | ||
exports.isPrototypeOf = Object.prototype.isPrototypeOf.call.bind(Object.prototype.isPrototypeOf); | ||
exports.isEnumerable = Object.prototype.propertyIsEnumerable.call.bind(Object.prototype.propertyIsEnumerable); | ||
exports.toString = Object.prototype.toString.call.bind(Object.prototype.toString); | ||
exports.ObjectAssign = Object.assign; | ||
exports.ObjectCreate = Object.create; | ||
exports.ObjectGetPrototypeOf = Object.getPrototypeOf; | ||
exports.ObjectSetPrototypeOf = Object.setPrototypeOf; | ||
/***/ }), | ||
/***/ 7731: | ||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | ||
Object.defineProperty(exports, "__esModule", ({ | ||
value: true | ||
})); | ||
exports.counter = void 0; | ||
const alias_1 = __webpack_require__(5406); | ||
const dict = [...Array(36)].map((_, i) => i.toString(36)).join(''); | ||
function counter(radix = 10, pad = '') { | ||
let cnt0 = 0; | ||
if (radix === 10) return format(pad, () => `${++cnt0}`); | ||
let cnt1 = 0; | ||
@@ -58,11 +35,16 @@ let str1 = ''; | ||
let str2 = ''; | ||
return () => { | ||
return format(pad, () => { | ||
const digit0 = dict[cnt0 = ++cnt0 % radix]; | ||
const digit1 = cnt0 ? str1 : str1 = dict[cnt1 = ++cnt1 % radix]; | ||
const digitN = cnt0 | cnt1 ? str2 : str2 = (++cnt2).toString(radix); | ||
const count = `${digitN}${digit1}${digit0}`; | ||
return pad ? (pad + count).slice(-(0, alias_1.max)(pad.length, count.length)) : count; | ||
return `${digitN}${digit1}${digit0}`; | ||
}); | ||
} | ||
exports.counter = counter; | ||
function format(pad, counter) { | ||
return pad === '' ? counter : () => { | ||
const count = counter(); | ||
return pad.length > count.length ? `${pad.slice(0, pad.length - count.length)}${count}` : count; | ||
}; | ||
} | ||
exports.counter = counter; | ||
@@ -69,0 +51,0 @@ /***/ }), |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -151,3 +151,3 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
/***/ 7731: | ||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -160,6 +160,6 @@ | ||
exports.counter = void 0; | ||
const alias_1 = __webpack_require__(5406); | ||
const dict = [...Array(36)].map((_, i) => i.toString(36)).join(''); | ||
function counter(radix = 10, pad = '') { | ||
let cnt0 = 0; | ||
if (radix === 10) return format(pad, () => `${++cnt0}`); | ||
let cnt1 = 0; | ||
@@ -169,11 +169,16 @@ let str1 = ''; | ||
let str2 = ''; | ||
return () => { | ||
return format(pad, () => { | ||
const digit0 = dict[cnt0 = ++cnt0 % radix]; | ||
const digit1 = cnt0 ? str1 : str1 = dict[cnt1 = ++cnt1 % radix]; | ||
const digitN = cnt0 | cnt1 ? str2 : str2 = (++cnt2).toString(radix); | ||
const count = `${digitN}${digit1}${digit0}`; | ||
return pad ? (pad + count).slice(-(0, alias_1.max)(pad.length, count.length)) : count; | ||
return `${digitN}${digit1}${digit0}`; | ||
}); | ||
} | ||
exports.counter = counter; | ||
function format(pad, counter) { | ||
return pad === '' ? counter : () => { | ||
const count = counter(); | ||
return pad.length > count.length ? `${pad.slice(0, pad.length - count.length)}${count}` : count; | ||
}; | ||
} | ||
exports.counter = counter; | ||
@@ -180,0 +185,0 @@ /***/ }), |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -151,3 +151,3 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
/***/ 7731: | ||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -160,6 +160,6 @@ | ||
exports.counter = void 0; | ||
const alias_1 = __webpack_require__(5406); | ||
const dict = [...Array(36)].map((_, i) => i.toString(36)).join(''); | ||
function counter(radix = 10, pad = '') { | ||
let cnt0 = 0; | ||
if (radix === 10) return format(pad, () => `${++cnt0}`); | ||
let cnt1 = 0; | ||
@@ -169,11 +169,16 @@ let str1 = ''; | ||
let str2 = ''; | ||
return () => { | ||
return format(pad, () => { | ||
const digit0 = dict[cnt0 = ++cnt0 % radix]; | ||
const digit1 = cnt0 ? str1 : str1 = dict[cnt1 = ++cnt1 % radix]; | ||
const digitN = cnt0 | cnt1 ? str2 : str2 = (++cnt2).toString(radix); | ||
const count = `${digitN}${digit1}${digit0}`; | ||
return pad ? (pad + count).slice(-(0, alias_1.max)(pad.length, count.length)) : count; | ||
return `${digitN}${digit1}${digit0}`; | ||
}); | ||
} | ||
exports.counter = counter; | ||
function format(pad, counter) { | ||
return pad === '' ? counter : () => { | ||
const count = counter(); | ||
return pad.length > count.length ? `${pad.slice(0, pad.length - count.length)}${count}` : count; | ||
}; | ||
} | ||
exports.counter = counter; | ||
@@ -180,0 +185,0 @@ /***/ }), |
@@ -6,4 +6,4 @@ export type NonNull = {}; | ||
export type Not<T extends boolean> = T extends true ? false : true; | ||
export type And<TS extends readonly unknown[]> = TS extends readonly [] ? never : TS extends readonly [infer T1] ? T1 : TS extends readonly [infer T1, ...infer TS] ? [T1] extends [Falsy] ? T1 : And<TS> : never; | ||
export type Or<TS extends readonly unknown[]> = TS extends readonly [] ? never : TS extends readonly [infer T1] ? T1 : TS extends readonly [infer T1, ...infer TS] ? [T1] extends [Falsy] ? Or<TS> : T1 : never; | ||
export type And<TS extends readonly unknown[]> = TS extends readonly [infer T1] ? T1 : TS extends readonly [infer T1, ...infer TS] ? [T1] extends [Falsy] ? T1 : And<TS> : never; | ||
export type Or<TS extends readonly unknown[]> = TS extends readonly [infer T1] ? T1 : TS extends readonly [infer T1, ...infer TS] ? [T1] extends [Falsy] ? Or<TS> : T1 : never; | ||
export type IsNever<T> = [T] extends [never] ? true : false; | ||
@@ -24,7 +24,9 @@ export type IsVoid<T> = [void] extends [T] ? Not<Or<[IsAny<T>, IsUnknown<T>]>> : false; | ||
} | ||
export type Narrow<TS extends readonly unknown[]> = Narrow_<Filter<TS, [any, never]>, []>; | ||
type Narrow_<TS extends readonly unknown[], US extends TS[number][]> = TS extends readonly [] ? [] : TS extends readonly [infer T1, ...infer TS] ? [ | ||
export type Narrow<TS extends readonly unknown[]> = Narrow_<TS, [], []>; | ||
type Narrow_<TS extends readonly unknown[], US extends TS[number][], VS extends TS[number][]> = TS extends readonly [] ? [US, VS] extends [[infer U1, ...infer _], []] ? [U1] : VS : TS extends readonly [infer T1, ...infer TS] ? [ | ||
T1 | ||
] extends [never] ? TS extends [] ? VS : Narrow_<TS, US, VS> : [ | ||
Extract<TS[number] | US[number], T1> | ||
] extends [never] ? [T1, ...Narrow_<TS, [T1, ...US]>] : Narrow_<TS, [T1, ...US]> : never; | ||
export type Intersect<TS extends readonly unknown[]> = TS extends readonly [] ? never : TS extends readonly [infer T] ? T : TS extends readonly [infer T, ...infer TS] ? T & Intersect<TS> : never; | ||
] extends [never] ? Narrow_<TS, [...US, T1], [...VS, T1]> : Narrow_<TS, [...US, T1], VS> : never; | ||
export type Intersect<TS extends readonly unknown[]> = TS extends readonly [infer T] ? T : TS extends readonly [infer T, ...infer TS] ? T & Intersect<TS> : never; | ||
export type StrToNum<T extends string> = T extends `-${number}` ? never : T extends `${number}` ? StringToNumber<T> : never; | ||
@@ -31,0 +33,0 @@ type StringToNumber<T extends `${number}`, as extends 0[] = []> = T extends keyof [0, ...as] ? as['length'] : StringToNumber<T, [0, ...as]>; |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -16,3 +16,3 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
/***/ 5406: | ||
/***/ 7731: | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -25,30 +25,7 @@ | ||
})); | ||
exports.ObjectSetPrototypeOf = exports.ObjectGetPrototypeOf = exports.ObjectCreate = exports.ObjectAssign = exports.toString = exports.isEnumerable = exports.isPrototypeOf = exports.hasOwnProperty = exports.isArray = exports.sqrt = exports.log10 = exports.log2 = exports.log = exports.tan = exports.cos = exports.sign = exports.round = exports.random = exports.min = exports.max = exports.floor = exports.ceil = exports.abs = exports.PI = exports.parseInt = exports.parseFloat = exports.isSafeInteger = exports.isNaN = exports.isInteger = exports.isFinite = exports.EPSILON = exports.MIN_VALUE = exports.MIN_SAFE_INTEGER = exports.MAX_VALUE = exports.MAX_SAFE_INTEGER = void 0; | ||
exports.MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER, exports.MAX_VALUE = Number.MAX_VALUE, exports.MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER, exports.MIN_VALUE = Number.MIN_VALUE, exports.EPSILON = Number.EPSILON, exports.isFinite = Number.isFinite, exports.isInteger = Number.isInteger, exports.isNaN = Number.isNaN, exports.isSafeInteger = Number.isSafeInteger, exports.parseFloat = Number.parseFloat, exports.parseInt = Number.parseInt; | ||
exports.PI = Math.PI, exports.abs = Math.abs, exports.ceil = Math.ceil, exports.floor = Math.floor, exports.max = Math.max, exports.min = Math.min, exports.random = Math.random, exports.round = Math.round, exports.sign = Math.sign, exports.cos = Math.cos, exports.tan = Math.tan, exports.log = Math.log, exports.log2 = Math.log2, exports.log10 = Math.log10, exports.sqrt = Math.sqrt; | ||
exports.isArray = Array.isArray; | ||
exports.hasOwnProperty = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty); | ||
exports.isPrototypeOf = Object.prototype.isPrototypeOf.call.bind(Object.prototype.isPrototypeOf); | ||
exports.isEnumerable = Object.prototype.propertyIsEnumerable.call.bind(Object.prototype.propertyIsEnumerable); | ||
exports.toString = Object.prototype.toString.call.bind(Object.prototype.toString); | ||
exports.ObjectAssign = Object.assign; | ||
exports.ObjectCreate = Object.create; | ||
exports.ObjectGetPrototypeOf = Object.getPrototypeOf; | ||
exports.ObjectSetPrototypeOf = Object.setPrototypeOf; | ||
/***/ }), | ||
/***/ 7731: | ||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | ||
Object.defineProperty(exports, "__esModule", ({ | ||
value: true | ||
})); | ||
exports.counter = void 0; | ||
const alias_1 = __webpack_require__(5406); | ||
const dict = [...Array(36)].map((_, i) => i.toString(36)).join(''); | ||
function counter(radix = 10, pad = '') { | ||
let cnt0 = 0; | ||
if (radix === 10) return format(pad, () => `${++cnt0}`); | ||
let cnt1 = 0; | ||
@@ -58,11 +35,16 @@ let str1 = ''; | ||
let str2 = ''; | ||
return () => { | ||
return format(pad, () => { | ||
const digit0 = dict[cnt0 = ++cnt0 % radix]; | ||
const digit1 = cnt0 ? str1 : str1 = dict[cnt1 = ++cnt1 % radix]; | ||
const digitN = cnt0 | cnt1 ? str2 : str2 = (++cnt2).toString(radix); | ||
const count = `${digitN}${digit1}${digit0}`; | ||
return pad ? (pad + count).slice(-(0, alias_1.max)(pad.length, count.length)) : count; | ||
return `${digitN}${digit1}${digit0}`; | ||
}); | ||
} | ||
exports.counter = counter; | ||
function format(pad, counter) { | ||
return pad === '' ? counter : () => { | ||
const count = counter(); | ||
return pad.length > count.length ? `${pad.slice(0, pad.length - count.length)}${count}` : count; | ||
}; | ||
} | ||
exports.counter = counter; | ||
@@ -69,0 +51,0 @@ /***/ }), |
19
index.js
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -151,3 +151,3 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
/***/ 7731: | ||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -160,6 +160,6 @@ | ||
exports.counter = void 0; | ||
const alias_1 = __webpack_require__(5406); | ||
const dict = [...Array(36)].map((_, i) => i.toString(36)).join(''); | ||
function counter(radix = 10, pad = '') { | ||
let cnt0 = 0; | ||
if (radix === 10) return format(pad, () => `${++cnt0}`); | ||
let cnt1 = 0; | ||
@@ -169,11 +169,16 @@ let str1 = ''; | ||
let str2 = ''; | ||
return () => { | ||
return format(pad, () => { | ||
const digit0 = dict[cnt0 = ++cnt0 % radix]; | ||
const digit1 = cnt0 ? str1 : str1 = dict[cnt1 = ++cnt1 % radix]; | ||
const digitN = cnt0 | cnt1 ? str2 : str2 = (++cnt2).toString(radix); | ||
const count = `${digitN}${digit1}${digit0}`; | ||
return pad ? (pad + count).slice(-(0, alias_1.max)(pad.length, count.length)) : count; | ||
return `${digitN}${digit1}${digit0}`; | ||
}); | ||
} | ||
exports.counter = counter; | ||
function format(pad, counter) { | ||
return pad === '' ? counter : () => { | ||
const count = counter(); | ||
return pad.length > count.length ? `${pad.slice(0, pad.length - count.length)}${count}` : count; | ||
}; | ||
} | ||
exports.counter = counter; | ||
@@ -180,0 +185,0 @@ /***/ }), |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -151,3 +151,3 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
/***/ 7731: | ||
/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | ||
/***/ ((__unused_webpack_module, exports) => { | ||
@@ -160,6 +160,6 @@ | ||
exports.counter = void 0; | ||
const alias_1 = __webpack_require__(5406); | ||
const dict = [...Array(36)].map((_, i) => i.toString(36)).join(''); | ||
function counter(radix = 10, pad = '') { | ||
let cnt0 = 0; | ||
if (radix === 10) return format(pad, () => `${++cnt0}`); | ||
let cnt1 = 0; | ||
@@ -169,11 +169,16 @@ let str1 = ''; | ||
let str2 = ''; | ||
return () => { | ||
return format(pad, () => { | ||
const digit0 = dict[cnt0 = ++cnt0 % radix]; | ||
const digit1 = cnt0 ? str1 : str1 = dict[cnt1 = ++cnt1 % radix]; | ||
const digitN = cnt0 | cnt1 ? str2 : str2 = (++cnt2).toString(radix); | ||
const count = `${digitN}${digit1}${digit0}`; | ||
return pad ? (pad + count).slice(-(0, alias_1.max)(pad.length, count.length)) : count; | ||
return `${digitN}${digit1}${digit0}`; | ||
}); | ||
} | ||
exports.counter = counter; | ||
function format(pad, counter) { | ||
return pad === '' ? counter : () => { | ||
const count = counter(); | ||
return pad.length > count.length ? `${pad.slice(0, pad.length - count.length)}${count}` : count; | ||
}; | ||
} | ||
exports.counter = counter; | ||
@@ -180,0 +185,0 @@ /***/ }), |
{ | ||
"name": "typed-dom", | ||
"version": "0.0.340", | ||
"version": "0.0.341", | ||
"description": "A value-level and type-level DOM builder.", | ||
@@ -42,14 +42,14 @@ "private": false, | ||
"@types/power-assert": "1.5.8", | ||
"@typescript-eslint/parser": "^5.60.0", | ||
"babel-loader": "^9.1.2", | ||
"@typescript-eslint/parser": "^5.61.0", | ||
"babel-loader": "^9.1.3", | ||
"babel-plugin-unassert": "^3.2.0", | ||
"concurrently": "^8.2.0", | ||
"eslint": "^8.43.0", | ||
"eslint": "^8.44.0", | ||
"eslint-plugin-redos": "^4.4.5", | ||
"eslint-webpack-plugin": "^4.0.1", | ||
"glob": "^10.3.0", | ||
"glob": "^10.3.3", | ||
"i18next": "22.4.4", | ||
"karma": "^6.4.2", | ||
"karma-chrome-launcher": "^3.2.0", | ||
"karma-coverage": "^2.2.0", | ||
"karma-coverage": "^2.2.1", | ||
"karma-firefox-launcher": "^2.1.2", | ||
@@ -59,7 +59,7 @@ "karma-mocha": "^2.0.1", | ||
"mocha": "^10.2.0", | ||
"npm-check-updates": "^16.10.12", | ||
"spica": "0.0.736", | ||
"ts-loader": "^9.4.3", | ||
"typescript": "5.1.3", | ||
"webpack": "^5.88.0", | ||
"npm-check-updates": "^16.10.15", | ||
"spica": "0.0.739", | ||
"ts-loader": "^9.4.4", | ||
"typescript": "5.1.6", | ||
"webpack": "^5.88.1", | ||
"webpack-cli": "^5.1.4", | ||
@@ -66,0 +66,0 @@ "webpack-merge": "^5.9.0" |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
@@ -1,2 +0,2 @@ | ||
/*! typed-dom v0.0.340 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
/*! typed-dom v0.0.341 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object') |
Sorry, the diff of this file is too big to display
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
677443
16087