New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.308 to 0.0.309

dist/node_modules/spica/counter.d.ts

2

dist/dom.js

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

/*! typed-dom v0.0.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 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.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -16,25 +16,51 @@ if(typeof exports === 'object' && typeof module === 'object')

/***/ 128:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
/***/ 406:
/***/ ((__unused_webpack_module, exports) => {
__webpack_require__(921);
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.ObjectSetPrototypeOf = exports.ObjectGetPrototypeOf = exports.ObjectCreate = exports.ObjectAssign = exports.toString = exports.isEnumerable = exports.isPrototypeOf = exports.hasOwnProperty = exports.isArray = exports.sqrt = exports.log = exports.tan = exports.cos = exports.sign = exports.round = exports.random = exports.min = exports.max = exports.floor = exports.ceil = exports.abs = exports.parseInt = exports.parseFloat = exports.isSafeInteger = exports.isNaN = exports.isInteger = exports.isFinite = exports[NaN] = void 0;
exports[NaN] = Number.NaN, 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.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.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;
const global = void 0 || typeof globalThis !== 'undefined' && globalThis // @ts-ignore
|| typeof self !== 'undefined' && self || Function('return this')();
global.global = global;
module.exports = global;
/***/ }),
/***/ 921:
/***/ (() => {
/***/ 731:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
// @ts-ignore
var globalThis; // @ts-ignore
var global = (/* unused pure expression or super */ null && (globalThis));
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.counter = void 0;
const alias_1 = __webpack_require__(406);
const dict = [...Array(36)].map((_, i) => i.toString(36)).join('');
function counter(radix = 10, pad = '') {
let count = 0;
let str = '';
let cnt = 0;
return () => {
const c = `${++cnt === radix ? str = (++count).toString(radix) : str}${dict[cnt = cnt % radix]}`;
return pad ? (pad + c).slice(-(0, alias_1.max)(pad.length, c.length)) : c;
};
}
exports.counter = counter;
/***/ })

@@ -69,2 +95,15 @@

/************************************************************************/
/******/ /* webpack/runtime/global */
/******/ (() => {
/******/ __webpack_require__.g = (function() {
/******/ if (typeof globalThis === 'object') return globalThis;
/******/ try {
/******/ return this || new Function('return this')();
/******/ } catch (e) {
/******/ if (typeof window === 'object') return window;
/******/ }
/******/ })();
/******/ })();
/******/
/************************************************************************/
var __webpack_exports__ = {};

@@ -81,12 +120,6 @@ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.

const global_1 = __webpack_require__(128); // uniqueによる実装はメモリを圧迫しqueryのベンチマークが落ちるため不可
const counter_1 = __webpack_require__(731); // uniqueによる実装はメモリを圧迫しqueryのベンチマークが落ちるため不可
const rnd = (c => () => (c++).toString(36))(0);
const dict = [...Array(36)].map((_, i) => i.toString(36)).join('');
let r = '';
let c = dict.length - 1;
exports.identity = global_1.global[Symbol.for('typed-dom::identity')] ??= () => `${++c === dict.length ? r = rnd() : r}${dict[c = c % dict.length]}`;
exports.identity = __webpack_require__.g[Symbol.for('typed-dom::identity')] ??= (0, counter_1.counter)(36);
})();

@@ -93,0 +126,0 @@

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

/*! typed-dom v0.0.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -137,3 +137,24 @@ if(typeof exports === 'object' && typeof module === 'object')

return arguments.length > 2 ? as.splice(index, count, ...values) : as.splice(index);
switch (values.length) {
case 0:
return count !== undefined || arguments.length > 1 ? as.splice(index, count) : as.splice(index);
case 1:
return as.splice(index, count, values[0]);
case 2:
return as.splice(index, count, values[0], values[1]);
case 3:
return as.splice(index, count, values[0], values[1], values[2]);
case 4:
return as.splice(index, count, values[0], values[1], values[2], values[3]);
case 5:
return as.splice(index, count, values[0], values[1], values[2], values[3], values[4]);
default:
return count !== undefined || arguments.length > 1 ? as.splice(index, count, ...values) : as.splice(index);
}
}

@@ -163,2 +184,30 @@

/***/ 731:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.counter = void 0;
const alias_1 = __webpack_require__(406);
const dict = [...Array(36)].map((_, i) => i.toString(36)).join('');
function counter(radix = 10, pad = '') {
let count = 0;
let str = '';
let cnt = 0;
return () => {
const c = `${++cnt === radix ? str = (++count).toString(radix) : str}${dict[cnt = cnt % radix]}`;
return pad ? (pad + c).slice(-(0, alias_1.max)(pad.length, c.length)) : c;
};
}
exports.counter = counter;
/***/ }),
/***/ 288:

@@ -1526,13 +1575,7 @@ /***/ ((__unused_webpack_module, exports) => {

const global_1 = __webpack_require__(128); // uniqueによる実装はメモリを圧迫しqueryのベンチマークが落ちるため不可
const counter_1 = __webpack_require__(731); // uniqueによる実装はメモリを圧迫しqueryのベンチマークが落ちるため不可
const rnd = (c => () => (c++).toString(36))(0);
exports.identity = __webpack_require__.g[Symbol.for('typed-dom::identity')] ??= (0, counter_1.counter)(36);
const dict = [...Array(36)].map((_, i) => i.toString(36)).join('');
let r = '';
let c = dict.length - 1;
exports.identity = global_1.global[Symbol.for('typed-dom::identity')] ??= () => `${++c === dict.length ? r = rnd() : r}${dict[c = c % dict.length]}`;
/***/ }),

@@ -1730,2 +1773,15 @@

/************************************************************************/
/******/ /* webpack/runtime/global */
/******/ (() => {
/******/ __webpack_require__.g = (function() {
/******/ if (typeof globalThis === 'object') return globalThis;
/******/ try {
/******/ return this || new Function('return this')();
/******/ } catch (e) {
/******/ if (typeof window === 'object') return window;
/******/ }
/******/ })();
/******/ })();
/******/
/************************************************************************/
var __webpack_exports__ = {};

@@ -1732,0 +1788,0 @@ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.

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

/*! typed-dom v0.0.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 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')

@@ -8,3 +8,4 @@ export interface Dict<K, V> {

export interface IterableDict<K, V> extends Dict<K, V> {
readonly size: number;
[Symbol.iterator](): Iterator<[K, V], undefined, undefined>;
}

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

/*! typed-dom v0.0.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 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.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 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.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -16,25 +16,51 @@ if(typeof exports === 'object' && typeof module === 'object')

/***/ 128:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
/***/ 406:
/***/ ((__unused_webpack_module, exports) => {
__webpack_require__(921);
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.ObjectSetPrototypeOf = exports.ObjectGetPrototypeOf = exports.ObjectCreate = exports.ObjectAssign = exports.toString = exports.isEnumerable = exports.isPrototypeOf = exports.hasOwnProperty = exports.isArray = exports.sqrt = exports.log = exports.tan = exports.cos = exports.sign = exports.round = exports.random = exports.min = exports.max = exports.floor = exports.ceil = exports.abs = exports.parseInt = exports.parseFloat = exports.isSafeInteger = exports.isNaN = exports.isInteger = exports.isFinite = exports[NaN] = void 0;
exports[NaN] = Number.NaN, 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.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.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;
const global = void 0 || typeof globalThis !== 'undefined' && globalThis // @ts-ignore
|| typeof self !== 'undefined' && self || Function('return this')();
global.global = global;
module.exports = global;
/***/ }),
/***/ 921:
/***/ (() => {
/***/ 731:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
// @ts-ignore
var globalThis; // @ts-ignore
var global = (/* unused pure expression or super */ null && (globalThis));
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.counter = void 0;
const alias_1 = __webpack_require__(406);
const dict = [...Array(36)].map((_, i) => i.toString(36)).join('');
function counter(radix = 10, pad = '') {
let count = 0;
let str = '';
let cnt = 0;
return () => {
const c = `${++cnt === radix ? str = (++count).toString(radix) : str}${dict[cnt = cnt % radix]}`;
return pad ? (pad + c).slice(-(0, alias_1.max)(pad.length, c.length)) : c;
};
}
exports.counter = counter;
/***/ })

@@ -69,2 +95,15 @@

/************************************************************************/
/******/ /* webpack/runtime/global */
/******/ (() => {
/******/ __webpack_require__.g = (function() {
/******/ if (typeof globalThis === 'object') return globalThis;
/******/ try {
/******/ return this || new Function('return this')();
/******/ } catch (e) {
/******/ if (typeof window === 'object') return window;
/******/ }
/******/ })();
/******/ })();
/******/
/************************************************************************/
var __webpack_exports__ = {};

@@ -81,12 +120,6 @@ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.

const global_1 = __webpack_require__(128); // uniqueによる実装はメモリを圧迫しqueryのベンチマークが落ちるため不可
const counter_1 = __webpack_require__(731); // uniqueによる実装はメモリを圧迫しqueryのベンチマークが落ちるため不可
const rnd = (c => () => (c++).toString(36))(0);
const dict = [...Array(36)].map((_, i) => i.toString(36)).join('');
let r = '';
let c = dict.length - 1;
exports.identity = global_1.global[Symbol.for('typed-dom::identity')] ??= () => `${++c === dict.length ? r = rnd() : r}${dict[c = c % dict.length]}`;
exports.identity = __webpack_require__.g[Symbol.for('typed-dom::identity')] ??= (0, counter_1.counter)(36);
})();

@@ -93,0 +126,0 @@

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

/*! typed-dom v0.0.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -137,3 +137,24 @@ if(typeof exports === 'object' && typeof module === 'object')

return arguments.length > 2 ? as.splice(index, count, ...values) : as.splice(index);
switch (values.length) {
case 0:
return count !== undefined || arguments.length > 1 ? as.splice(index, count) : as.splice(index);
case 1:
return as.splice(index, count, values[0]);
case 2:
return as.splice(index, count, values[0], values[1]);
case 3:
return as.splice(index, count, values[0], values[1], values[2]);
case 4:
return as.splice(index, count, values[0], values[1], values[2], values[3]);
case 5:
return as.splice(index, count, values[0], values[1], values[2], values[3], values[4]);
default:
return count !== undefined || arguments.length > 1 ? as.splice(index, count, ...values) : as.splice(index);
}
}

@@ -163,2 +184,30 @@

/***/ 731:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.counter = void 0;
const alias_1 = __webpack_require__(406);
const dict = [...Array(36)].map((_, i) => i.toString(36)).join('');
function counter(radix = 10, pad = '') {
let count = 0;
let str = '';
let cnt = 0;
return () => {
const c = `${++cnt === radix ? str = (++count).toString(radix) : str}${dict[cnt = cnt % radix]}`;
return pad ? (pad + c).slice(-(0, alias_1.max)(pad.length, c.length)) : c;
};
}
exports.counter = counter;
/***/ }),
/***/ 288:

@@ -1526,13 +1575,7 @@ /***/ ((__unused_webpack_module, exports) => {

const global_1 = __webpack_require__(128); // uniqueによる実装はメモリを圧迫しqueryのベンチマークが落ちるため不可
const counter_1 = __webpack_require__(731); // uniqueによる実装はメモリを圧迫しqueryのベンチマークが落ちるため不可
const rnd = (c => () => (c++).toString(36))(0);
exports.identity = __webpack_require__.g[Symbol.for('typed-dom::identity')] ??= (0, counter_1.counter)(36);
const dict = [...Array(36)].map((_, i) => i.toString(36)).join('');
let r = '';
let c = dict.length - 1;
exports.identity = global_1.global[Symbol.for('typed-dom::identity')] ??= () => `${++c === dict.length ? r = rnd() : r}${dict[c = c % dict.length]}`;
/***/ }),

@@ -1730,2 +1773,15 @@

/************************************************************************/
/******/ /* webpack/runtime/global */
/******/ (() => {
/******/ __webpack_require__.g = (function() {
/******/ if (typeof globalThis === 'object') return globalThis;
/******/ try {
/******/ return this || new Function('return this')();
/******/ } catch (e) {
/******/ if (typeof window === 'object') return window;
/******/ }
/******/ })();
/******/ })();
/******/
/************************************************************************/
var __webpack_exports__ = {};

@@ -1732,0 +1788,0 @@ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.

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

/*! typed-dom v0.0.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 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')

{
"name": "typed-dom",
"version": "0.0.308",
"version": "0.0.309",
"description": "A value-level and type-level DOM builder.",

@@ -58,4 +58,4 @@ "private": false,

"mocha": "^10.0.0",
"npm-check-updates": "^16.1.2",
"spica": "0.0.625",
"npm-check-updates": "^16.1.3",
"spica": "0.0.626",
"ts-loader": "^9.3.1",

@@ -62,0 +62,0 @@ "typescript": "4.8.3",

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

/*! typed-dom v0.0.308 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.309 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,14 +0,6 @@

import { global } from 'spica/global';
import { counter } from 'spica/counter';
// uniqueによる実装はメモリを圧迫しqueryのベンチマークが落ちるため不可
const rnd = (c => () => (c++).toString(36))(0);
const dict = [...Array(36)].map((_, i) => i.toString(36)).join('');
assert(dict.length === 36);
assert(dict[0] === '0');
assert(dict.at(-1) === 'z');
let r = '';
let c = dict.length - 1;
export const identity: () => string = global[Symbol.for('typed-dom::identity')]
??= () => `${++c === dict.length ? r = rnd() : r}${dict[c = c % dict.length]}`;
assert(/^\w0$/.test(identity()));
??= counter(36);
assert([...Array(100)].every((_, i) => identity() === (++i).toString(36)));
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