From fd32e4a8d2e96645350349e2b86ad5ecede29434 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Thu, 22 Aug 2024 17:36:39 +0800 Subject: [PATCH] feat: use sourcemaps --- CHANGES.md | 4 ++++ package.json | 2 +- rollup.config.js | 2 ++ src/deepEqual.js | 1 + src/deepEqual.js.map | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/deepEqual.js.map diff --git a/CHANGES.md b/CHANGES.md index f8bf8ff0..5ffc4acb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # CHANGES TO `@es-joy/jsoe` +## 0.21.0 + +- feat: use sourcemaps + ## 0.20.6 - fix(`recordType`): failing `toValue` conversion diff --git a/package.json b/package.json index e8eb4b06..3b037dbe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@es-joy/jsoe", - "version": "0.20.6", + "version": "0.21.0", "type": "module", "types": "./dist/index.d.ts", "main": "./src/index.js", diff --git a/rollup.config.js b/rollup.config.js index 7cc4eb06..63066495 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -10,6 +10,7 @@ export default [{ input: 'src/index.js', external: ['react'], // Todo: remove when removed from Zodex output: { + sourcemap: true, file: 'dist/index.js', format: 'es' }, @@ -70,6 +71,7 @@ export default [{ output: { file: 'src/deepEqual.js', format: 'es', + sourcemap: true, name: 'deepEqual' }, plugins: [ diff --git a/src/deepEqual.js b/src/deepEqual.js index f9d056ed..97d73449 100644 --- a/src/deepEqual.js +++ b/src/deepEqual.js @@ -70,3 +70,4 @@ var es6 = function equal(a, b) { var index = /*@__PURE__*/getDefaultExportFromCjs(es6); export { index as default }; +//# sourceMappingURL=deepEqual.js.map diff --git a/src/deepEqual.js.map b/src/deepEqual.js.map new file mode 100644 index 00000000..5a27e74b --- /dev/null +++ b/src/deepEqual.js.map @@ -0,0 +1 @@ +{"version":3,"file":"deepEqual.js","sources":["../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/es6/index.js"],"sourcesContent":["'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';\n\n\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n\n if ((a instanceof Map) && (b instanceof Map)) {\n if (a.size !== b.size) return false;\n for (i of a.entries())\n if (!b.has(i[0])) return false;\n for (i of a.entries())\n if (!equal(i[1], b.get(i[0]))) return false;\n return true;\n }\n\n if ((a instanceof Set) && (b instanceof Set)) {\n if (a.size !== b.size) return false;\n for (i of a.entries())\n if (!b.has(i[0])) return false;\n return true;\n }\n\n if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (a[i] !== b[i]) return false;\n return true;\n }\n\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n }\n\n // true if both NaN, false otherwise\n return a!==a && b!==b;\n};\n"],"names":[],"mappings":";;;;AAQA,IAAA,GAAc,GAAG,SAAS,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE;AACtC,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO,IAAI,CAAC;AAC3B;AACA,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI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