diff --git a/demo/browser/package.json b/demo/browser/package.json index 1a565edd..a75ee9c4 100644 --- a/demo/browser/package.json +++ b/demo/browser/package.json @@ -24,7 +24,7 @@ "csv-generate": "^4.4.1", "csv-parse": "^5.5.6", "csv-stringify": "^6.5.1", - "express": "^4.19.2", + "express": "^4.21.1", "stream-transform": "^3.3.2" } } diff --git a/demo/cjs/package.json b/demo/cjs/package.json index ade65716..34364b9c 100644 --- a/demo/cjs/package.json +++ b/demo/cjs/package.json @@ -11,12 +11,12 @@ "csv-stringify": "^6.5.1" }, "devDependencies": { - "@types/node": "^22.5.0", + "@types/node": "^22.9.1", "coffeescript": "^2.7.0", - "mocha": "^10.7.3", + "mocha": "^10.8.2", "should": "^13.2.3", "ts-node": "^10.9.2", - "typescript": "^5.5.4" + "typescript": "^5.6.3" }, "mocha": { "inline-diffs": true, diff --git a/demo/eslint/package.json b/demo/eslint/package.json index aab90986..89360cbc 100644 --- a/demo/eslint/package.json +++ b/demo/eslint/package.json @@ -13,8 +13,8 @@ "csv-stringify": "^6.5.1" }, "devDependencies": { - "eslint": "^9.9.1", + "eslint": "^9.15.0", "eslint-config-airbnb-base": "^15.0.0", - "eslint-plugin-import": "^2.29.1" + "eslint-plugin-import": "^2.31.0" } } diff --git a/demo/esm/package.json b/demo/esm/package.json index fb22d15a..49a85dd4 100644 --- a/demo/esm/package.json +++ b/demo/esm/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "coffeescript": "^2.7.0", - "mocha": "^10.7.3", + "mocha": "^10.8.2", "should": "^13.2.3" }, "mocha": { diff --git a/demo/issues-cjs/package.json b/demo/issues-cjs/package.json index 108dc582..3ceba175 100644 --- a/demo/issues-cjs/package.json +++ b/demo/issues-cjs/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "coffeescript": "^2.7.0", - "mocha": "^10.7.3", + "mocha": "^10.8.2", "should": "^13.2.3" }, "mocha": { diff --git a/demo/issues-esm/package.json b/demo/issues-esm/package.json index dfd6834f..34472b8f 100644 --- a/demo/issues-esm/package.json +++ b/demo/issues-esm/package.json @@ -8,7 +8,7 @@ "devDependencies": { "coffeescript": "^2.7.0", "dirname-filename-esm": "^1.1.2", - "mocha": "^10.7.3", + "mocha": "^10.8.2", "should": "^13.2.3" }, "mocha": { @@ -38,6 +38,6 @@ "csv-stringify": "^6.5.1", "dedent": "^1.5.3", "desm": "^1.3.1", - "duckdb-async": "^1.1.1" + "duckdb-async": "^1.1.3" } } diff --git a/demo/ts-cjs-node16/package.json b/demo/ts-cjs-node16/package.json index d54298bc..5f0be042 100644 --- a/demo/ts-cjs-node16/package.json +++ b/demo/ts-cjs-node16/package.json @@ -11,7 +11,7 @@ "license": "MIT", "private": true, "devDependencies": { - "typescript": "^5.5.4" + "typescript": "^5.6.3" }, "scripts": { "test": "tsc --noEmit" diff --git a/demo/ts-esm-node16/package.json b/demo/ts-esm-node16/package.json index eb4196fd..628e4b78 100644 --- a/demo/ts-esm-node16/package.json +++ b/demo/ts-esm-node16/package.json @@ -12,12 +12,12 @@ "stream-transform": "^3.3.2" }, "devDependencies": { - "@types/node": "^22.5.0", + "@types/node": "^22.9.1", "coffeescript": "^2.7.0", - "mocha": "^10.7.3", + "mocha": "^10.8.2", "should": "^13.2.3", "ts-node": "^10.9.2", - "typescript": "^5.5.4" + "typescript": "^5.6.3" }, "mocha": { "inline-diffs": true, diff --git a/demo/webpack-ts/package.json b/demo/webpack-ts/package.json index 2f0abcb0..15c3c46c 100644 --- a/demo/webpack-ts/package.json +++ b/demo/webpack-ts/package.json @@ -18,8 +18,8 @@ "node-polyfill-webpack-plugin": "^4.0.0", "stream-browserify": "^3.0.0", "ts-loader": "^9.5.1", - "typescript": "^5.5.4", - "webpack": "^5.94.0", + "typescript": "^5.6.3", + "webpack": "^5.96.1", "webpack-cli": "^5.1.4" }, "scripts": { diff --git a/demo/webpack/package.json b/demo/webpack/package.json index 521f8233..08ff7412 100644 --- a/demo/webpack/package.json +++ b/demo/webpack/package.json @@ -12,7 +12,7 @@ "author": "", "license": "ISC", "devDependencies": { - "webpack": "^5.94.0", + "webpack": "^5.96.1", "webpack-cli": "^5.1.4" }, "dependencies": { diff --git a/package.json b/package.json index 32cddb15..37178187 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "private": true, "devDependencies": { - "@commitlint/cli": "^19.4.0", - "@commitlint/config-conventional": "^19.2.2", + "@commitlint/cli": "^19.6.0", + "@commitlint/config-conventional": "^19.6.0", "cz-conventional-changelog": "^3.3.0", "glob": "^11.0.0", - "husky": "^9.1.5", - "lerna": "^8.1.8", - "lint-staged": "^15.2.9" + "husky": "^9.1.7", + "lerna": "^8.1.9", + "lint-staged": "^15.2.10" }, "lint-staged": { "*.js": "npm run lint:fix", diff --git a/packages/csv-generate/package.json b/packages/csv-generate/package.json index dcf8cc18..7f338f55 100644 --- a/packages/csv-generate/package.json +++ b/packages/csv-generate/package.json @@ -13,24 +13,24 @@ "bugs": "https://github.com/adaltas/node-csv-generate/issues", "author": "David Worms (https://www.adaltas.com)", "devDependencies": { - "@eslint/js": "^9.9.1", - "@rollup/plugin-node-resolve": "^15.2.3", - "@types/mocha": "^10.0.7", - "@types/node": "^22.5.0", + "@eslint/js": "^9.15.0", + "@rollup/plugin-node-resolve": "^15.3.0", + "@types/mocha": "^10.0.9", + "@types/node": "^22.9.1", "coffeescript": "~2.7.0", - "each": "^2.7.0", - "eslint": "^9.9.1", + "each": "^2.7.2", + "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-mocha": "^10.5.0", "eslint-plugin-prettier": "^5.2.1", - "mocha": "~10.7.3", + "mocha": "~10.8.2", "prettier": "^3.3.3", - "rollup": "^4.21.0", + "rollup": "^4.27.3", "rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-globals": "^1.4.0", "should": "~13.2.3", "ts-node": "^10.9.2", - "typescript": "^5.5.4" + "typescript": "^5.6.3" }, "exports": { ".": { diff --git a/packages/csv-parse/package.json b/packages/csv-parse/package.json index 5e6fd678..c7841fa3 100644 --- a/packages/csv-parse/package.json +++ b/packages/csv-parse/package.json @@ -72,28 +72,28 @@ } }, "devDependencies": { - "@eslint/js": "^9.9.1", - "@rollup/plugin-node-resolve": "^15.2.3", - "@types/mocha": "^10.0.7", - "@types/node": "^22.5.0", + "@eslint/js": "^9.15.0", + "@rollup/plugin-node-resolve": "^15.3.0", + "@types/mocha": "^10.0.9", + "@types/node": "^22.9.1", "coffeescript": "^2.7.0", "csv-generate": "^4.4.1", "csv-spectrum": "^2.0.0", - "each": "^2.7.0", - "eslint": "^9.9.1", + "each": "^2.7.2", + "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-mocha": "^10.5.0", "eslint-plugin-prettier": "^5.2.1", - "mocha": "^10.7.3", - "pad": "^3.2.0", + "mocha": "^10.8.2", + "pad": "^3.3.0", "prettier": "^3.3.3", - "rollup": "^4.21.0", + "rollup": "^4.27.3", "rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-globals": "^1.4.0", "should": "^13.2.3", "stream-transform": "^3.3.2", "ts-node": "^10.9.2", - "typescript": "^5.5.4" + "typescript": "^5.6.3" }, "files": [ "dist", diff --git a/packages/csv-stringify/dist/cjs/index.cjs b/packages/csv-stringify/dist/cjs/index.cjs index 1e8bad3f..7e170d78 100644 --- a/packages/csv-stringify/dist/cjs/index.cjs +++ b/packages/csv-stringify/dist/cjs/index.cjs @@ -50,9 +50,11 @@ const rePropName = RegExp( ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -60,6 +62,7 @@ const isSymbol = function (value) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -80,6 +83,7 @@ const isKey = function (value, object) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -96,6 +100,7 @@ const stringToPath = function (string) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -103,12 +108,14 @@ const castPath = function (value, object) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv-stringify/dist/cjs/sync.cjs b/packages/csv-stringify/dist/cjs/sync.cjs index 034ef2a3..4e6b3252 100644 --- a/packages/csv-stringify/dist/cjs/sync.cjs +++ b/packages/csv-stringify/dist/cjs/sync.cjs @@ -23,9 +23,11 @@ const rePropName = RegExp( ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -33,6 +35,7 @@ const isSymbol = function (value) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -53,6 +56,7 @@ const isKey = function (value, object) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -69,6 +73,7 @@ const stringToPath = function (string) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -76,12 +81,14 @@ const castPath = function (value, object) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv-stringify/dist/esm/index.js b/packages/csv-stringify/dist/esm/index.js index 1bc116ad..47013ff0 100644 --- a/packages/csv-stringify/dist/esm/index.js +++ b/packages/csv-stringify/dist/esm/index.js @@ -5172,9 +5172,11 @@ const rePropName = RegExp( ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -5182,6 +5184,7 @@ const isSymbol = function (value) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -5202,6 +5205,7 @@ const isKey = function (value, object) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -5218,6 +5222,7 @@ const stringToPath = function (string) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -5225,12 +5230,14 @@ const castPath = function (value, object) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv-stringify/dist/esm/sync.js b/packages/csv-stringify/dist/esm/sync.js index 1e917450..3348f7ae 100644 --- a/packages/csv-stringify/dist/esm/sync.js +++ b/packages/csv-stringify/dist/esm/sync.js @@ -1993,9 +1993,11 @@ const rePropName = RegExp( ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -2003,6 +2005,7 @@ const isSymbol = function (value) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -2023,6 +2026,7 @@ const isKey = function (value, object) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -2039,6 +2043,7 @@ const stringToPath = function (string) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -2046,12 +2051,14 @@ const castPath = function (value, object) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv-stringify/dist/iife/index.js b/packages/csv-stringify/dist/iife/index.js index 3422b313..4b540a2d 100644 --- a/packages/csv-stringify/dist/iife/index.js +++ b/packages/csv-stringify/dist/iife/index.js @@ -5175,9 +5175,11 @@ var csv_stringify = (function (exports) { ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -5185,6 +5187,7 @@ var csv_stringify = (function (exports) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -5205,6 +5208,7 @@ var csv_stringify = (function (exports) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -5221,6 +5225,7 @@ var csv_stringify = (function (exports) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -5228,12 +5233,14 @@ var csv_stringify = (function (exports) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv-stringify/dist/iife/sync.js b/packages/csv-stringify/dist/iife/sync.js index 561cec21..2473d394 100644 --- a/packages/csv-stringify/dist/iife/sync.js +++ b/packages/csv-stringify/dist/iife/sync.js @@ -1996,9 +1996,11 @@ var csv_stringify_sync = (function (exports) { ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -2006,6 +2008,7 @@ var csv_stringify_sync = (function (exports) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -2026,6 +2029,7 @@ var csv_stringify_sync = (function (exports) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -2042,6 +2046,7 @@ var csv_stringify_sync = (function (exports) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -2049,12 +2054,14 @@ var csv_stringify_sync = (function (exports) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv-stringify/dist/umd/index.js b/packages/csv-stringify/dist/umd/index.js index c42f3829..b27b478d 100644 --- a/packages/csv-stringify/dist/umd/index.js +++ b/packages/csv-stringify/dist/umd/index.js @@ -5178,9 +5178,11 @@ ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -5188,6 +5190,7 @@ (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -5208,6 +5211,7 @@ (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -5224,6 +5228,7 @@ }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -5231,12 +5236,14 @@ return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv-stringify/dist/umd/sync.js b/packages/csv-stringify/dist/umd/sync.js index 1b014937..cdb9332a 100644 --- a/packages/csv-stringify/dist/umd/sync.js +++ b/packages/csv-stringify/dist/umd/sync.js @@ -1999,9 +1999,11 @@ ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -2009,6 +2011,7 @@ (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -2029,6 +2032,7 @@ (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -2045,6 +2049,7 @@ }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -2052,12 +2057,14 @@ return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv-stringify/package.json b/packages/csv-stringify/package.json index 461aa012..684072ba 100644 --- a/packages/csv-stringify/package.json +++ b/packages/csv-stringify/package.json @@ -11,26 +11,26 @@ ], "author": "David Worms (https://www.adaltas.com)", "devDependencies": { - "@eslint/js": "^9.9.1", - "@rollup/plugin-node-resolve": "^15.2.3", - "@types/mocha": "^10.0.7", - "@types/node": "^22.5.0", + "@eslint/js": "^9.15.0", + "@rollup/plugin-node-resolve": "^15.3.0", + "@types/mocha": "^10.0.9", + "@types/node": "^22.9.1", "coffeescript": "~2.7.0", "csv-generate": "^4.4.1", - "each": "^2.7.0", - "eslint": "^9.9.1", + "each": "^2.7.2", + "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-mocha": "^10.5.0", "eslint-plugin-prettier": "^5.2.1", - "express": "^4.19.2", - "mocha": "~10.7.3", + "express": "^4.21.1", + "mocha": "~10.8.2", "prettier": "^3.3.3", - "rollup": "^4.21.0", + "rollup": "^4.27.3", "rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-globals": "^1.4.0", "should": "~13.2.3", "ts-node": "^10.9.2", - "typescript": "^5.5.4" + "typescript": "^5.6.3" }, "exports": { ".": { diff --git a/packages/csv/dist/cjs/index.cjs b/packages/csv/dist/cjs/index.cjs index c2880712..c3947d6e 100644 --- a/packages/csv/dist/cjs/index.cjs +++ b/packages/csv/dist/cjs/index.cjs @@ -2400,9 +2400,11 @@ const rePropName = RegExp( ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -2410,6 +2412,7 @@ const isSymbol = function (value) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -2430,6 +2433,7 @@ const isKey = function (value, object) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -2446,6 +2450,7 @@ const stringToPath = function (string) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -2453,12 +2458,14 @@ const castPath = function (value, object) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv/dist/cjs/sync.cjs b/packages/csv/dist/cjs/sync.cjs index 660bb537..527f8b58 100644 --- a/packages/csv/dist/cjs/sync.cjs +++ b/packages/csv/dist/cjs/sync.cjs @@ -2092,9 +2092,11 @@ const rePropName = RegExp( ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -2102,6 +2104,7 @@ const isSymbol = function (value) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -2122,6 +2125,7 @@ const isKey = function (value, object) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -2138,6 +2142,7 @@ const stringToPath = function (string) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -2145,12 +2150,14 @@ const castPath = function (value, object) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv/dist/esm/index.js b/packages/csv/dist/esm/index.js index 252d7ff3..93a5b12f 100644 --- a/packages/csv/dist/esm/index.js +++ b/packages/csv/dist/esm/index.js @@ -7575,9 +7575,11 @@ const rePropName = RegExp( ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -7585,6 +7587,7 @@ const isSymbol = function (value) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -7605,6 +7608,7 @@ const isKey = function (value, object) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -7621,6 +7625,7 @@ const stringToPath = function (string) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -7628,12 +7633,14 @@ const castPath = function (value, object) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv/dist/esm/sync.js b/packages/csv/dist/esm/sync.js index 4e2dbcda..efc0e6d3 100644 --- a/packages/csv/dist/esm/sync.js +++ b/packages/csv/dist/esm/sync.js @@ -7275,9 +7275,11 @@ const rePropName = RegExp( ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -7285,6 +7287,7 @@ const isSymbol = function (value) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -7305,6 +7308,7 @@ const isKey = function (value, object) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -7321,6 +7325,7 @@ const stringToPath = function (string) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -7328,12 +7333,14 @@ const castPath = function (value, object) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv/dist/iife/index.js b/packages/csv/dist/iife/index.js index eb9bec7d..3665e743 100644 --- a/packages/csv/dist/iife/index.js +++ b/packages/csv/dist/iife/index.js @@ -7578,9 +7578,11 @@ var csv = (function (exports) { ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -7588,6 +7590,7 @@ var csv = (function (exports) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -7608,6 +7611,7 @@ var csv = (function (exports) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -7624,6 +7628,7 @@ var csv = (function (exports) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -7631,12 +7636,14 @@ var csv = (function (exports) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv/dist/iife/sync.js b/packages/csv/dist/iife/sync.js index 37868b5c..30438d4f 100644 --- a/packages/csv/dist/iife/sync.js +++ b/packages/csv/dist/iife/sync.js @@ -7278,9 +7278,11 @@ var csv_sync = (function (exports) { ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -7288,6 +7290,7 @@ var csv_sync = (function (exports) { (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -7308,6 +7311,7 @@ var csv_sync = (function (exports) { (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -7324,6 +7328,7 @@ var csv_sync = (function (exports) { }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -7331,12 +7336,14 @@ var csv_sync = (function (exports) { return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv/dist/umd/index.js b/packages/csv/dist/umd/index.js index 434f0705..f20f7f8e 100644 --- a/packages/csv/dist/umd/index.js +++ b/packages/csv/dist/umd/index.js @@ -7581,9 +7581,11 @@ ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -7591,6 +7593,7 @@ (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -7611,6 +7614,7 @@ (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -7627,6 +7631,7 @@ }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -7634,12 +7639,14 @@ return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv/dist/umd/sync.js b/packages/csv/dist/umd/sync.js index 95d609b9..b9c23d14 100644 --- a/packages/csv/dist/umd/sync.js +++ b/packages/csv/dist/umd/sync.js @@ -7281,9 +7281,11 @@ ); const reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; const reIsPlainProp = /^\w*$/; + const getTag = function (value) { return Object.prototype.toString.call(value); }; + const isSymbol = function (value) { const type = typeof value; return ( @@ -7291,6 +7293,7 @@ (type === "object" && value && getTag(value) === "[object Symbol]") ); }; + const isKey = function (value, object) { if (Array.isArray(value)) { return false; @@ -7311,6 +7314,7 @@ (object != null && value in Object(object)) ); }; + const stringToPath = function (string) { const result = []; if (string.charCodeAt(0) === charCodeOfDot) { @@ -7327,6 +7331,7 @@ }); return result; }; + const castPath = function (value, object) { if (Array.isArray(value)) { return value; @@ -7334,12 +7339,14 @@ return isKey(value, object) ? [value] : stringToPath(value); } }; + const toKey = function (value) { if (typeof value === "string" || isSymbol(value)) return value; const result = `${value}`; // eslint-disable-next-line - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; + return result == "0" && 1 / value == -INFINITY ? "-0" : result; }; + const get = function (object, path) { path = castPath(path, object); let index = 0; diff --git a/packages/csv/package.json b/packages/csv/package.json index a3136951..3dcc61ce 100644 --- a/packages/csv/package.json +++ b/packages/csv/package.json @@ -29,24 +29,24 @@ "stream-transform": "^3.3.2" }, "devDependencies": { - "@eslint/js": "^9.9.1", - "@rollup/plugin-node-resolve": "^15.2.3", - "@types/mocha": "^10.0.7", - "@types/node": "^22.5.0", + "@eslint/js": "^9.15.0", + "@rollup/plugin-node-resolve": "^15.3.0", + "@types/mocha": "^10.0.9", + "@types/node": "^22.9.1", "coffeescript": "~2.7.0", - "each": "^2.7.0", - "eslint": "^9.9.1", + "each": "^2.7.2", + "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-mocha": "^10.5.0", "eslint-plugin-prettier": "^5.2.1", - "mocha": "~10.7.3", + "mocha": "~10.8.2", "prettier": "^3.3.3", - "rollup": "^4.21.0", + "rollup": "^4.27.3", "rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-globals": "^1.4.0", "should": "~13.2.3", "ts-node": "^10.9.2", - "typescript": "^5.5.4" + "typescript": "^5.6.3" }, "engines": { "node": ">= 0.1.90" diff --git a/packages/stream-transform/package.json b/packages/stream-transform/package.json index 2de39204..1eb99720 100644 --- a/packages/stream-transform/package.json +++ b/packages/stream-transform/package.json @@ -12,26 +12,26 @@ ], "author": "David Worms (https://www.adaltas.com)", "devDependencies": { - "@eslint/js": "^9.9.1", - "@rollup/plugin-node-resolve": "^15.2.3", - "@types/mocha": "^10.0.7", - "@types/node": "^22.5.0", + "@eslint/js": "^9.15.0", + "@rollup/plugin-node-resolve": "^15.3.0", + "@types/mocha": "^10.0.9", + "@types/node": "^22.9.1", "coffeescript": "~2.7.0", "csv-generate": "^4.4.1", - "each": "^2.7.0", - "eslint": "^9.9.1", + "each": "^2.7.2", + "eslint": "^9.15.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-mocha": "^10.5.0", "eslint-plugin-prettier": "^5.2.1", - "mocha": "~10.7.3", - "pad": "~3.2.0", + "mocha": "~10.8.2", + "pad": "~3.3.0", "prettier": "^3.3.3", - "rollup": "^4.21.0", + "rollup": "^4.27.3", "rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-globals": "^1.4.0", "should": "~13.2.3", "ts-node": "^10.9.2", - "typescript": "^5.5.4" + "typescript": "^5.6.3" }, "exports": { ".": {