diff --git a/dist/alchemy-json_api.js b/dist/alchemy-json_api.js index d63102d..f5dc001 100644 --- a/dist/alchemy-json_api.js +++ b/dist/alchemy-json_api.js @@ -1,15 +1,9 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var structuredClone = require('@ungap/structured-clone'); -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var structuredClone__default = /*#__PURE__*/_interopDefaultLegacy(structuredClone); - function deserialize(originalResponse) { - const response = structuredClone__default["default"](originalResponse); + const response = structuredClone(originalResponse); const included = response.included || []; if (Array.isArray(response.data)) { return response.data.map(data => { diff --git a/dist/deserialize.js b/dist/deserialize.js index b8b77ae..50d6199 100644 --- a/dist/deserialize.js +++ b/dist/deserialize.js @@ -1,15 +1,9 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var structuredClone = require('@ungap/structured-clone'); -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var structuredClone__default = /*#__PURE__*/_interopDefaultLegacy(structuredClone); - function deserialize(originalResponse) { - const response = structuredClone__default["default"](originalResponse); + const response = structuredClone(originalResponse); const included = response.included || []; if (Array.isArray(response.data)) { return response.data.map(data => { diff --git a/package.json b/package.json index 4d9d402..df57699 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "babel-jest": "^29.0.2", "jest": "^29.0.2", "prettier": "^3.3.3", - "rollup": "^2.79.0" + "rollup": "^4.24.4" }, "scripts": { "build": "rollup --config", diff --git a/rollup.config.js b/rollup.config.mjs similarity index 100% rename from rollup.config.js rename to rollup.config.mjs