{"_id":"@ahmttyydn/json-magic","_rev":"7-774c7b524695f8c77eabc5563b71e1fe","name":"@ahmttyydn/json-magic","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.0":{"name":"@ahmttyydn/json-magic","version":"1.0.0","author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/json-magic@1.0.0","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/scalar/scalar","bugs":{"url":"https://github.com/scalar/scalar/issues/new/choose"},"dist":{"shasum":"6616aadc8bd5ff20dcb1bf3bf389ceb5931ed1c9","tarball":"https://registry.npmjs.org/@ahmttyydn/json-magic/-/json-magic-1.0.0.tgz","fileCount":109,"integrity":"sha512-tMCbbDU61SX5QmOCt1gF4VdvLcnlN47Off4UHYSKxA9/daeCF7tK+SlaGZ7U1zSA9A0pqTSs8zHd85/h8ZCA2w==","signatures":[{"sig":"MEYCIQC5TUUbos2R/2mLvsDFkG9uyokZecEL97Ay9Lr0LByYwQIhANCdEw7Cbv3yFf1V6i4ZpZdIlRyHkBRMxK9s9JMnRMyo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":174830},"type":"module","_from":"file:ahmttyydn-json-magic-1.0.0.tgz","engines":{"node":">=22"},"exports":{"./diff":{"types":"./dist/diff/index.d.ts","import":"./dist/diff/index.js","default":"./dist/diff/index.js"},"./bundle":{"types":"./dist/bundle/index.d.ts","import":"./dist/bundle/index.js","default":"./dist/bundle/index.js"},"./dereference":{"types":"./dist/dereference/index.d.ts","import":"./dist/dereference/index.js","default":"./dist/dereference/index.js"},"./magic-proxy":{"types":"./dist/magic-proxy/index.d.ts","import":"./dist/magic-proxy/index.js","default":"./dist/magic-proxy/index.js"},"./helpers/normalize":{"types":"./dist/helpers/normalize.d.ts","import":"./dist/helpers/normalize.js","default":"./dist/helpers/normalize.js"},"./bundle/plugins/node":{"types":"./dist/bundle/plugins/node.d.ts","import":"./dist/bundle/plugins/node.js","default":"./dist/bundle/plugins/node.js"},"./helpers/is-http-url":{"types":"./dist/helpers/is-http-url.d.ts","import":"./dist/helpers/is-http-url.js","default":"./dist/helpers/is-http-url.js"},"./helpers/is-file-path":{"types":"./dist/helpers/is-file-path.d.ts","import":"./dist/helpers/is-file-path.js","default":"./dist/helpers/is-file-path.js"},"./bundle/plugins/browser":{"types":"./dist/bundle/plugins/browser.d.ts","import":"./dist/bundle/plugins/browser.js","default":"./dist/bundle/plugins/browser.js"},"./helpers/escape-json-pointer":{"types":"./dist/helpers/escape-json-pointer.d.ts","import":"./dist/helpers/escape-json-pointer.js","default":"./dist/helpers/escape-json-pointer.js"},"./helpers/unescape-json-pointer":{"types":"./dist/helpers/unescape-json-pointer.d.ts","import":"./dist/helpers/unescape-json-pointer.js","default":"./dist/helpers/unescape-json-pointer.js"},"./helpers/get-segments-from-path":{"types":"./dist/helpers/get-segments-from-path.d.ts","import":"./dist/helpers/get-segments-from-path.js","default":"./dist/helpers/get-segments-from-path.js"}},"scripts":{"test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"},"_resolved":"/private/var/folders/6s/_0b0836n1t9dc5prz2rp43h80000gn/T/57063a6abbf83be13400520b6c5973f3/ahmttyydn-json-magic-1.0.0.tgz","_integrity":"sha512-tMCbbDU61SX5QmOCt1gF4VdvLcnlN47Off4UHYSKxA9/daeCF7tK+SlaGZ7U1zSA9A0pqTSs8zHd85/h8ZCA2w==","repository":{"url":"git+https://github.com/scalar/scalar.git","type":"git","directory":"packages/json-magic"},"_npmVersion":"11.6.2","description":"A collection of utilities for working with JSON objects, including diffing, conflict resolution, bundling and more.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"yaml":"^2.8.0","pathe":"^2.0.3","@ahmttyydn/helpers":"1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.0.0","fastify":"^5.8.1"},"_npmOperationalInternal":{"tmp":"tmp/json-magic_1.0.0_1775418666492_0.2095155746529911","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@ahmttyydn/json-magic","version":"1.0.1","author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/json-magic@1.0.1","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"03baf190b88d302abf3ddcd95ea34c8c9e6609c1","tarball":"https://registry.npmjs.org/@ahmttyydn/json-magic/-/json-magic-1.0.1.tgz","fileCount":109,"integrity":"sha512-G8XwmFnaOIGMMBNYVo172+zXC0X39MCquFIMtg6OkajRUcnerSJG36ZrJ4T2hVhzemJlTnV2HnHojIoI13Gdqg==","signatures":[{"sig":"MEUCIEUSRhePbarnvypeneXfjZppOuNnq67TcmXNHJW10K8dAiEAvE5Oh5P5vD2QRQNzNVjgLC16mVoI9EdPpwJxFr3WUlM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fjson-magic@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":174833},"type":"module","_from":"file:ahmttyydn-json-magic-1.0.1.tgz","engines":{"node":">=22"},"exports":{"./diff":{"types":"./dist/diff/index.d.ts","import":"./dist/diff/index.js","default":"./dist/diff/index.js"},"./bundle":{"types":"./dist/bundle/index.d.ts","import":"./dist/bundle/index.js","default":"./dist/bundle/index.js"},"./dereference":{"types":"./dist/dereference/index.d.ts","import":"./dist/dereference/index.js","default":"./dist/dereference/index.js"},"./magic-proxy":{"types":"./dist/magic-proxy/index.d.ts","import":"./dist/magic-proxy/index.js","default":"./dist/magic-proxy/index.js"},"./helpers/normalize":{"types":"./dist/helpers/normalize.d.ts","import":"./dist/helpers/normalize.js","default":"./dist/helpers/normalize.js"},"./bundle/plugins/node":{"types":"./dist/bundle/plugins/node.d.ts","import":"./dist/bundle/plugins/node.js","default":"./dist/bundle/plugins/node.js"},"./helpers/is-http-url":{"types":"./dist/helpers/is-http-url.d.ts","import":"./dist/helpers/is-http-url.js","default":"./dist/helpers/is-http-url.js"},"./helpers/is-file-path":{"types":"./dist/helpers/is-file-path.d.ts","import":"./dist/helpers/is-file-path.js","default":"./dist/helpers/is-file-path.js"},"./bundle/plugins/browser":{"types":"./dist/bundle/plugins/browser.d.ts","import":"./dist/bundle/plugins/browser.js","default":"./dist/bundle/plugins/browser.js"},"./helpers/escape-json-pointer":{"types":"./dist/helpers/escape-json-pointer.d.ts","import":"./dist/helpers/escape-json-pointer.js","default":"./dist/helpers/escape-json-pointer.js"},"./helpers/unescape-json-pointer":{"types":"./dist/helpers/unescape-json-pointer.d.ts","import":"./dist/helpers/unescape-json-pointer.js","default":"./dist/helpers/unescape-json-pointer.js"},"./helpers/get-segments-from-path":{"types":"./dist/helpers/get-segments-from-path.d.ts","import":"./dist/helpers/get-segments-from-path.js","default":"./dist/helpers/get-segments-from-path.js"}},"scripts":{"test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:453f6800-da0a-4049-b607-8b7a99c4d0d1"}},"_resolved":"/tmp/1c9a4598fe9bdb7d619d43596f418ef0/ahmttyydn-json-magic-1.0.1.tgz","_integrity":"sha512-G8XwmFnaOIGMMBNYVo172+zXC0X39MCquFIMtg6OkajRUcnerSJG36ZrJ4T2hVhzemJlTnV2HnHojIoI13Gdqg==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/json-magic"},"_npmVersion":"11.11.0","description":"A collection of utilities for working with JSON objects, including diffing, conflict resolution, bundling and more.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","pathe":"^2.0.3","@ahmttyydn/helpers":"1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.0.0","fastify":"^5.8.1"},"_npmOperationalInternal":{"tmp":"tmp/json-magic_1.0.1_1775438250530_0.9831090846596067","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@ahmttyydn/json-magic","version":"1.0.2","author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/json-magic@1.0.2","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"f53ed89e62e9a3aa9c9e05cb45fbf52a4e602174","tarball":"https://registry.npmjs.org/@ahmttyydn/json-magic/-/json-magic-1.0.2.tgz","fileCount":109,"integrity":"sha512-66F0UtnBndWmOM8kd1GDiYaL44RpKJtQ1uJ1qnMcb8XBZrtBgS8si13YKJpZEX4RBu6sWDON5g7t+faYlZJiew==","signatures":[{"sig":"MEQCICkqLHVUSbGbXZStk1hvZHmkBYq6t8ixdVD1uQ+o+8ztAiAKDIk9PJV7ngZFjkOntVCmoes1nkyhF8C5ou0PhqdIWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fjson-magic@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":174833},"type":"module","_from":"file:ahmttyydn-json-magic-1.0.2.tgz","engines":{"node":">=22"},"exports":{"./diff":{"types":"./dist/diff/index.d.ts","import":"./dist/diff/index.js","default":"./dist/diff/index.js"},"./bundle":{"types":"./dist/bundle/index.d.ts","import":"./dist/bundle/index.js","default":"./dist/bundle/index.js"},"./dereference":{"types":"./dist/dereference/index.d.ts","import":"./dist/dereference/index.js","default":"./dist/dereference/index.js"},"./magic-proxy":{"types":"./dist/magic-proxy/index.d.ts","import":"./dist/magic-proxy/index.js","default":"./dist/magic-proxy/index.js"},"./helpers/normalize":{"types":"./dist/helpers/normalize.d.ts","import":"./dist/helpers/normalize.js","default":"./dist/helpers/normalize.js"},"./bundle/plugins/node":{"types":"./dist/bundle/plugins/node.d.ts","import":"./dist/bundle/plugins/node.js","default":"./dist/bundle/plugins/node.js"},"./helpers/is-http-url":{"types":"./dist/helpers/is-http-url.d.ts","import":"./dist/helpers/is-http-url.js","default":"./dist/helpers/is-http-url.js"},"./helpers/is-file-path":{"types":"./dist/helpers/is-file-path.d.ts","import":"./dist/helpers/is-file-path.js","default":"./dist/helpers/is-file-path.js"},"./bundle/plugins/browser":{"types":"./dist/bundle/plugins/browser.d.ts","import":"./dist/bundle/plugins/browser.js","default":"./dist/bundle/plugins/browser.js"},"./helpers/escape-json-pointer":{"types":"./dist/helpers/escape-json-pointer.d.ts","import":"./dist/helpers/escape-json-pointer.js","default":"./dist/helpers/escape-json-pointer.js"},"./helpers/unescape-json-pointer":{"types":"./dist/helpers/unescape-json-pointer.d.ts","import":"./dist/helpers/unescape-json-pointer.js","default":"./dist/helpers/unescape-json-pointer.js"},"./helpers/get-segments-from-path":{"types":"./dist/helpers/get-segments-from-path.d.ts","import":"./dist/helpers/get-segments-from-path.js","default":"./dist/helpers/get-segments-from-path.js"}},"scripts":{"test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:453f6800-da0a-4049-b607-8b7a99c4d0d1"}},"_resolved":"/tmp/ebbf94dc30a345a0fb233306457b4f85/ahmttyydn-json-magic-1.0.2.tgz","_integrity":"sha512-66F0UtnBndWmOM8kd1GDiYaL44RpKJtQ1uJ1qnMcb8XBZrtBgS8si13YKJpZEX4RBu6sWDON5g7t+faYlZJiew==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/json-magic"},"_npmVersion":"11.11.0","description":"A collection of utilities for working with JSON objects, including diffing, conflict resolution, bundling and more.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","pathe":"^2.0.3","@ahmttyydn/helpers":"1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.0.0","fastify":"^5.8.1"},"_npmOperationalInternal":{"tmp":"tmp/json-magic_1.0.2_1775439097950_0.9403084062821969","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@ahmttyydn/json-magic","version":"1.0.4","author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/json-magic@1.0.4","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"ee9e679e0ac1a23468c0d155d96c59c193487bcf","tarball":"https://registry.npmjs.org/@ahmttyydn/json-magic/-/json-magic-1.0.4.tgz","fileCount":109,"integrity":"sha512-dZ0fc8HWPrxHTBGuI8fBbmd8bH/lWIHiiNSJJUt1CqFCGAFrQquL4UfKK8VON4qevF/D9wv5TkflFdbgIWFxXw==","signatures":[{"sig":"MEUCIDlknWuUd0qyGr/5rO7aOGsbDq8rL1f6D0Mn4rAYNkIxAiEA1zYvBB42Vt330MH9uKDr04E5wcOwwzs+XZbTIfpv56U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fjson-magic@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":174833},"type":"module","_from":"file:ahmttyydn-json-magic-1.0.4.tgz","engines":{"node":">=22"},"exports":{"./diff":{"types":"./dist/diff/index.d.ts","import":"./dist/diff/index.js","default":"./dist/diff/index.js"},"./bundle":{"types":"./dist/bundle/index.d.ts","import":"./dist/bundle/index.js","default":"./dist/bundle/index.js"},"./dereference":{"types":"./dist/dereference/index.d.ts","import":"./dist/dereference/index.js","default":"./dist/dereference/index.js"},"./magic-proxy":{"types":"./dist/magic-proxy/index.d.ts","import":"./dist/magic-proxy/index.js","default":"./dist/magic-proxy/index.js"},"./helpers/normalize":{"types":"./dist/helpers/normalize.d.ts","import":"./dist/helpers/normalize.js","default":"./dist/helpers/normalize.js"},"./bundle/plugins/node":{"types":"./dist/bundle/plugins/node.d.ts","import":"./dist/bundle/plugins/node.js","default":"./dist/bundle/plugins/node.js"},"./helpers/is-http-url":{"types":"./dist/helpers/is-http-url.d.ts","import":"./dist/helpers/is-http-url.js","default":"./dist/helpers/is-http-url.js"},"./helpers/is-file-path":{"types":"./dist/helpers/is-file-path.d.ts","import":"./dist/helpers/is-file-path.js","default":"./dist/helpers/is-file-path.js"},"./bundle/plugins/browser":{"types":"./dist/bundle/plugins/browser.d.ts","import":"./dist/bundle/plugins/browser.js","default":"./dist/bundle/plugins/browser.js"},"./helpers/escape-json-pointer":{"types":"./dist/helpers/escape-json-pointer.d.ts","import":"./dist/helpers/escape-json-pointer.js","default":"./dist/helpers/escape-json-pointer.js"},"./helpers/unescape-json-pointer":{"types":"./dist/helpers/unescape-json-pointer.d.ts","import":"./dist/helpers/unescape-json-pointer.js","default":"./dist/helpers/unescape-json-pointer.js"},"./helpers/get-segments-from-path":{"types":"./dist/helpers/get-segments-from-path.d.ts","import":"./dist/helpers/get-segments-from-path.js","default":"./dist/helpers/get-segments-from-path.js"}},"scripts":{"test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:453f6800-da0a-4049-b607-8b7a99c4d0d1"}},"_resolved":"/tmp/35b1ff18d47346617dfa8882831b85ca/ahmttyydn-json-magic-1.0.4.tgz","_integrity":"sha512-dZ0fc8HWPrxHTBGuI8fBbmd8bH/lWIHiiNSJJUt1CqFCGAFrQquL4UfKK8VON4qevF/D9wv5TkflFdbgIWFxXw==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/json-magic"},"_npmVersion":"11.11.0","description":"A collection of utilities for working with JSON objects, including diffing, conflict resolution, bundling and more.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","pathe":"^2.0.3","@ahmttyydn/helpers":"1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.0.0","fastify":"^5.8.1"},"_npmOperationalInternal":{"tmp":"tmp/json-magic_1.0.4_1775441005701_0.7159337945949666","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@ahmttyydn/json-magic","version":"1.0.6","author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/json-magic@1.0.6","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"a2e260650a3ec458323037171c1978bfc02de826","tarball":"https://registry.npmjs.org/@ahmttyydn/json-magic/-/json-magic-1.0.6.tgz","fileCount":109,"integrity":"sha512-MUvx5bKthMmryePA9djr8uxWg/GAJFDjLfgmbSbVWoBVUxCDiq527eXzYvev8oUWWqinwdhEJvQTWI0cRndGGw==","signatures":[{"sig":"MEUCIQCTCDmvSZEXJaQkejzp5Dtj9juYH2UJoHJ4BajWYJE2LgIgSKOcrYZ8Up+/PBB2jR8M7mFgak7KMhnPuK8o4z4a7RY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fjson-magic@1.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":174833},"type":"module","_from":"file:ahmttyydn-json-magic-1.0.6.tgz","engines":{"node":">=22"},"exports":{"./diff":{"types":"./dist/diff/index.d.ts","import":"./dist/diff/index.js","default":"./dist/diff/index.js"},"./bundle":{"types":"./dist/bundle/index.d.ts","import":"./dist/bundle/index.js","default":"./dist/bundle/index.js"},"./dereference":{"types":"./dist/dereference/index.d.ts","import":"./dist/dereference/index.js","default":"./dist/dereference/index.js"},"./magic-proxy":{"types":"./dist/magic-proxy/index.d.ts","import":"./dist/magic-proxy/index.js","default":"./dist/magic-proxy/index.js"},"./helpers/normalize":{"types":"./dist/helpers/normalize.d.ts","import":"./dist/helpers/normalize.js","default":"./dist/helpers/normalize.js"},"./bundle/plugins/node":{"types":"./dist/bundle/plugins/node.d.ts","import":"./dist/bundle/plugins/node.js","default":"./dist/bundle/plugins/node.js"},"./helpers/is-http-url":{"types":"./dist/helpers/is-http-url.d.ts","import":"./dist/helpers/is-http-url.js","default":"./dist/helpers/is-http-url.js"},"./helpers/is-file-path":{"types":"./dist/helpers/is-file-path.d.ts","import":"./dist/helpers/is-file-path.js","default":"./dist/helpers/is-file-path.js"},"./bundle/plugins/browser":{"types":"./dist/bundle/plugins/browser.d.ts","import":"./dist/bundle/plugins/browser.js","default":"./dist/bundle/plugins/browser.js"},"./helpers/escape-json-pointer":{"types":"./dist/helpers/escape-json-pointer.d.ts","import":"./dist/helpers/escape-json-pointer.js","default":"./dist/helpers/escape-json-pointer.js"},"./helpers/unescape-json-pointer":{"types":"./dist/helpers/unescape-json-pointer.d.ts","import":"./dist/helpers/unescape-json-pointer.js","default":"./dist/helpers/unescape-json-pointer.js"},"./helpers/get-segments-from-path":{"types":"./dist/helpers/get-segments-from-path.d.ts","import":"./dist/helpers/get-segments-from-path.js","default":"./dist/helpers/get-segments-from-path.js"}},"scripts":{"test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:453f6800-da0a-4049-b607-8b7a99c4d0d1"}},"_resolved":"/tmp/64b2e2e2b4d5213714171b8ed3e7f2df/ahmttyydn-json-magic-1.0.6.tgz","_integrity":"sha512-MUvx5bKthMmryePA9djr8uxWg/GAJFDjLfgmbSbVWoBVUxCDiq527eXzYvev8oUWWqinwdhEJvQTWI0cRndGGw==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/json-magic"},"_npmVersion":"11.11.0","description":"A collection of utilities for working with JSON objects, including diffing, conflict resolution, bundling and more.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","pathe":"^2.0.3","@ahmttyydn/helpers":"1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.0.0","fastify":"^5.8.1"},"_npmOperationalInternal":{"tmp":"tmp/json-magic_1.0.6_1775488372163_0.369947823914867","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@ahmttyydn/json-magic","version":"1.0.8","author":{"url":"https://github.com/scalar","name":"Scalar"},"license":"MIT","_id":"@ahmttyydn/json-magic@1.0.8","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"dist":{"shasum":"3e0e817967e6d20641e3a7f70661728828343758","tarball":"https://registry.npmjs.org/@ahmttyydn/json-magic/-/json-magic-1.0.8.tgz","fileCount":109,"integrity":"sha512-NF0XkLytxSsuTIMII63GpKp9D92Xz21LCU7Xkjo408J9WSVwTiX5tra62LC1ZvK7YzqLImEg1kFNj+hgsMuo8w==","signatures":[{"sig":"MEUCICIBQKbOomfCUMT65Eg/M0FfkMBCwWdBXHrKlOnAFM/YAiEAzvGQ1cJvdQfdNqXKtXvSjOqQVu9N2G4hgPiP0WKX/jk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fjson-magic@1.0.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":174833},"type":"module","_from":"file:ahmttyydn-json-magic-1.0.8.tgz","engines":{"node":">=22"},"exports":{"./diff":{"types":"./dist/diff/index.d.ts","import":"./dist/diff/index.js","default":"./dist/diff/index.js"},"./bundle":{"types":"./dist/bundle/index.d.ts","import":"./dist/bundle/index.js","default":"./dist/bundle/index.js"},"./dereference":{"types":"./dist/dereference/index.d.ts","import":"./dist/dereference/index.js","default":"./dist/dereference/index.js"},"./magic-proxy":{"types":"./dist/magic-proxy/index.d.ts","import":"./dist/magic-proxy/index.js","default":"./dist/magic-proxy/index.js"},"./helpers/normalize":{"types":"./dist/helpers/normalize.d.ts","import":"./dist/helpers/normalize.js","default":"./dist/helpers/normalize.js"},"./bundle/plugins/node":{"types":"./dist/bundle/plugins/node.d.ts","import":"./dist/bundle/plugins/node.js","default":"./dist/bundle/plugins/node.js"},"./helpers/is-http-url":{"types":"./dist/helpers/is-http-url.d.ts","import":"./dist/helpers/is-http-url.js","default":"./dist/helpers/is-http-url.js"},"./helpers/is-file-path":{"types":"./dist/helpers/is-file-path.d.ts","import":"./dist/helpers/is-file-path.js","default":"./dist/helpers/is-file-path.js"},"./bundle/plugins/browser":{"types":"./dist/bundle/plugins/browser.d.ts","import":"./dist/bundle/plugins/browser.js","default":"./dist/bundle/plugins/browser.js"},"./helpers/escape-json-pointer":{"types":"./dist/helpers/escape-json-pointer.d.ts","import":"./dist/helpers/escape-json-pointer.js","default":"./dist/helpers/escape-json-pointer.js"},"./helpers/unescape-json-pointer":{"types":"./dist/helpers/unescape-json-pointer.d.ts","import":"./dist/helpers/unescape-json-pointer.js","default":"./dist/helpers/unescape-json-pointer.js"},"./helpers/get-segments-from-path":{"types":"./dist/helpers/get-segments-from-path.d.ts","import":"./dist/helpers/get-segments-from-path.js","default":"./dist/helpers/get-segments-from-path.js"}},"scripts":{"test":"vitest","build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","types:check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:453f6800-da0a-4049-b607-8b7a99c4d0d1"}},"_resolved":"/tmp/fb11126e5d0595893cf8644444c58327/ahmttyydn-json-magic-1.0.8.tgz","_integrity":"sha512-NF0XkLytxSsuTIMII63GpKp9D92Xz21LCU7Xkjo408J9WSVwTiX5tra62LC1ZvK7YzqLImEg1kFNj+hgsMuo8w==","repository":{"url":"git+https://github.com/ahmtydn/scalar.git","type":"git","directory":"packages/json-magic"},"_npmVersion":"11.11.0","description":"A collection of utilities for working with JSON objects, including diffing, conflict resolution, bundling and more.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"yaml":"^2.8.0","pathe":"^2.0.3","@ahmttyydn/helpers":"1.0.8"},"_hasShrinkwrap":false,"devDependencies":{"vite":"8.0.0","fastify":"^5.8.1"},"_npmOperationalInternal":{"tmp":"tmp/json-magic_1.0.8_1775513318259_0.12773344849893142","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@ahmttyydn/json-magic","description":"A collection of utilities for working with JSON objects, including diffing, conflict resolution, bundling and more.","license":"MIT","author":{"name":"Scalar","url":"https://github.com/scalar"},"homepage":"https://github.com/ahmtydn/scalar","bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"repository":{"type":"git","url":"git+https://github.com/ahmtydn/scalar.git","directory":"packages/json-magic"},"version":"1.0.9","engines":{"node":">=22"},"type":"module","exports":{"./bundle":{"import":"./dist/bundle/index.js","types":"./dist/bundle/index.d.ts","default":"./dist/bundle/index.js"},"./bundle/plugins/browser":{"import":"./dist/bundle/plugins/browser.js","types":"./dist/bundle/plugins/browser.d.ts","default":"./dist/bundle/plugins/browser.js"},"./bundle/plugins/node":{"import":"./dist/bundle/plugins/node.js","types":"./dist/bundle/plugins/node.d.ts","default":"./dist/bundle/plugins/node.js"},"./dereference":{"import":"./dist/dereference/index.js","types":"./dist/dereference/index.d.ts","default":"./dist/dereference/index.js"},"./diff":{"import":"./dist/diff/index.js","types":"./dist/diff/index.d.ts","default":"./dist/diff/index.js"},"./helpers/escape-json-pointer":{"import":"./dist/helpers/escape-json-pointer.js","types":"./dist/helpers/escape-json-pointer.d.ts","default":"./dist/helpers/escape-json-pointer.js"},"./helpers/get-segments-from-path":{"import":"./dist/helpers/get-segments-from-path.js","types":"./dist/helpers/get-segments-from-path.d.ts","default":"./dist/helpers/get-segments-from-path.js"},"./helpers/is-file-path":{"import":"./dist/helpers/is-file-path.js","types":"./dist/helpers/is-file-path.d.ts","default":"./dist/helpers/is-file-path.js"},"./helpers/is-http-url":{"import":"./dist/helpers/is-http-url.js","types":"./dist/helpers/is-http-url.d.ts","default":"./dist/helpers/is-http-url.js"},"./helpers/normalize":{"import":"./dist/helpers/normalize.js","types":"./dist/helpers/normalize.d.ts","default":"./dist/helpers/normalize.js"},"./helpers/unescape-json-pointer":{"import":"./dist/helpers/unescape-json-pointer.js","types":"./dist/helpers/unescape-json-pointer.d.ts","default":"./dist/helpers/unescape-json-pointer.js"},"./magic-proxy":{"import":"./dist/magic-proxy/index.js","types":"./dist/magic-proxy/index.d.ts","default":"./dist/magic-proxy/index.js"}},"dependencies":{"pathe":"^2.0.3","yaml":"^2.8.0","@ahmttyydn/helpers":"1.0.9"},"devDependencies":{"fastify":"^5.8.1","vite":"8.0.0"},"scripts":{"build":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test":"vitest","types:check":"tsc --noEmit"},"_id":"@ahmttyydn/json-magic@1.0.9","_integrity":"sha512-PO+dyBKLZ9xPz5sYPPoqJeTi/Ym8IOpgWJ/3JtvIAFk+mkUKDcIn/ULehph+Zzo2kdIgBP5W0/mSyKNgIqdoeQ==","_resolved":"/tmp/50e91be8ae34b1ef1e80c7840352470f/ahmttyydn-json-magic-1.0.9.tgz","_from":"file:ahmttyydn-json-magic-1.0.9.tgz","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-PO+dyBKLZ9xPz5sYPPoqJeTi/Ym8IOpgWJ/3JtvIAFk+mkUKDcIn/ULehph+Zzo2kdIgBP5W0/mSyKNgIqdoeQ==","shasum":"4f279c78f8b755e92aee3b8206c63910761e49d1","tarball":"https://registry.npmjs.org/@ahmttyydn/json-magic/-/json-magic-1.0.9.tgz","fileCount":109,"unpackedSize":174833,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahmttyydn%2fjson-magic@1.0.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCAqjLOn69FfEgQ5B5nQAgPW0G8e1Gs6rzmthEJrUe66wIgIovUoT9UMXQ+dXWzcS0e77XybfWmPaVaAt2PCci42mU="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:453f6800-da0a-4049-b607-8b7a99c4d0d1"}},"directories":{},"maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/json-magic_1.0.9_1775514623614_0.17409336204804093"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-05T19:51:06.330Z","modified":"2026-04-06T22:30:24.070Z","1.0.0":"2026-04-05T19:51:06.661Z","1.0.1":"2026-04-06T01:17:30.675Z","1.0.2":"2026-04-06T01:31:38.097Z","1.0.4":"2026-04-06T02:03:25.860Z","1.0.6":"2026-04-06T15:12:52.302Z","1.0.8":"2026-04-06T22:08:38.400Z","1.0.9":"2026-04-06T22:30:23.783Z"},"bugs":{"url":"https://github.com/ahmtydn/scalar/issues/new/choose"},"author":{"name":"Scalar","url":"https://github.com/scalar"},"license":"MIT","homepage":"https://github.com/ahmtydn/scalar","repository":{"type":"git","url":"git+https://github.com/ahmtydn/scalar.git","directory":"packages/json-magic"},"description":"A collection of utilities for working with JSON objects, including diffing, conflict resolution, bundling and more.","maintainers":[{"name":"ahmttyydn","email":"ahmttyydn@gmail.com"}],"readme":"# json-magic\n\n[![Version](https://img.shields.io/npm/v/%40scalar/json-magic)](https://www.npmjs.com/package/@ahmttyydn/json-magic)\n[![Downloads](https://img.shields.io/npm/dm/%40scalar/json-magic)](https://www.npmjs.com/package/@ahmttyydn/json-magic)\n[![License](https://img.shields.io/npm/l/%40scalar%2Fjson-magic)](https://www.npmjs.com/package/@ahmttyydn/json-magic)\n[![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)\n\n\nA collection of utilities for working with JSON objects, including diffing, conflict resolution, bundling and more.\n\n## bundle\n\nBundle external references in a json object\n\n### Quick start\n\n```ts\nimport { bundle } from '@ahmttyydn/json-magic/bundle'\nimport { fetchUrls } from '@ahmttyydn/json-magic/bundle/plugins/browser'\n\nconst result = await bundle({\n $ref: 'http://example.com/document.json' \n}, {\n  plugins: [fetchUrls()],\n  treeShake: false,\n})\n\n// get the bundled json object\nconsole.log(result)\n```\n\n#### Plugins\n\nIf you are on a browser environment import plugins from `@ahmttyydn/json-magic/bundle/plugins/browser` while if you are on a node environment you can import from `@ahmttyydn/json-magic/bundle/plugins/node`\n\n##### fetchUrls\nThis plugins handles all external urls. It works for both node.js and browser environment\n\n```ts\nimport { bundle } from '@ahmttyydn/json-magic/bundle'\nimport { fetchUrls } from '@ahmttyydn/json-magic/bundle/plugins/browser'\n\nconst document = {\n  openapi: '3.1.0',\n  info: { title: 'Bundled API', version: '1.0.0' },\n  paths: {},\n  components: {\n    schemas: {\n      User: { $ref: 'https://example.com/user-schema.json#' }\n    }\n  }\n}\n\n// This will bundle all external documents and turn all references from external into internal\nawait bundle(document, {\n  plugins: [fetchUrls()],\n  treeShake: true  // <------  This flag will try to remove any unused part of the external document\n})\n\nconsole.log(document)\n```\n\n###### Limiting the number of concurrent requests\n\n```ts\nawait bundle(document, {\n  plugins: [\n    fetchUrls({\n      limit: 10, // it should run at most 10 requests at the same time\n    }),\n  ],\n  treeShake: false\n})\n\n```\n\n###### Custom headers\nTo pass custom headers to requests for specific domains you can configure the fetch plugin like the example\n\n```ts\nawait bundle(\n  document,\n  {\n    plugins: [\n      fetchUrls({\n        // Pass custom headers\n        // The header will only be attached to the list of domains\n        headers: [\n          {\n            domains: ['example.com'],\n            headers: {\n              'Authorization': 'Bearer <TOKEN>'\n            }\n          }\n        ]\n      }),\n      readFiles(),\n    ],\n    treeShake: false\n  },\n)\n```\n\n###### Custom fetch function\nFor advanced use cases like proxying requests or implementing custom network logic, you can provide your own fetch implementation. This allows you to handle things like CORS restrictions, custom authentication flows, or request/response transformations.\n\n```ts\nawait bundle(\n  document,\n  {\n    plugins: [\n      fetchUrls({\n        // Custom fetcher function\n        fetch: async (input, init) => {\n          console.log('Custom fetch logic')\n          return fetch(input, init)\n        },\n      })\n      readFiles(),\n    ],\n    treeShake: false\n  },\n)\n```\n\n###### Bundle from remote url\n\n```ts\nconst result = await bundle(\n  'https://example.com/openapi.json',\n  {\n    plugins: [\n      fetchUrls(),\n    ],\n    treeShake: false\n  },\n)\n\n// Bundled document\nconsole.log(result)\n```\n\n##### readFiles\nThis plugins handles local files. Only works on node.js environment\n\n```ts\nimport { bundle } from '@ahmttyydn/json-magic/bundle'\nimport { readFiles } from '@ahmttyydn/json-magic/bundle/plugins/node'\n\nconst document = {\n  openapi: '3.1.0',\n  info: { title: 'Bundled API', version: '1.0.0' },\n  paths: {},\n  components: {\n    schemas: {\n      User: { $ref: './user-schema.json#' }\n    }\n  }\n}\n\n// This will bundle all external documents and turn all references from external into internal\nawait bundle(document, {\n  plugins: [readFiles()],\n  treeShake: false\n})\n\nconsole.log(document)\n```\n\n###### Bundle from local file\nYou can pass the file path directly but make sure to have the correct plugins to handle reading from the local files\n\n```ts\nconst result = await bundle(\n  './input.json',\n  {\n    plugins: [\n      readFiles(),\n    ],\n    treeShake: false\n  },\n)\n\n// Bundled document\nconsole.log(result)\n```\n\n##### parseJson\n\nYou can pass raw json string as input\n```ts\nimport { bundle } from '@ahmttyydn/json-magic/bundle'\nimport { parseJson } from '@ahmttyydn/json-magic/bundle/plugins/browser'\n\nconst result = await bundle(\n  '{ \"openapi\": \"3.1.1\" }',\n  {\n    plugins: [\n      parseJson(),\n    ],\n    treeShake: false\n  },\n)\n\n// Bundled document\nconsole.log(result)\n```\n\n##### parseYaml\n\nYou can pass raw yaml string as input\n```ts\nimport { bundle } from '@ahmttyydn/json-magic/bundle'\nimport { parseYaml } from '@ahmttyydn/json-magic/bundle/plugins/browser'\n\nconst result = await bundle(\n  'openapi: \"3.1.1\"\\n',\n  {\n    plugins: [\n      parseYaml(),\n    ],\n    treeShake: false\n  },\n)\n\n// Bundled document\nconsole.log(result)\n```\n\n#### Bundler Options\n\n##### depth\n\nThe `depth` option controls how deeply the bundler will resolve `$ref` references. When you set `depth` to a number, the bundler will only follow references up to that level of nesting. This is useful for creating partial bundles or limiting resource usage.\n\n**Note:** When using `depth`, the resulting bundle may not be fully self-contained—some nested references deeper than the specified depth may remain unresolved. If you use `depth` together with the `visitedNodes` option, be aware that parent nodes may be marked as visited even if their child references have not been fully resolved yet. Use this option with care if you require a complete bundle.\n\n```ts\nimport { bundle } from '@ahmttyydn/openapi-parser'\nimport { fetchUrls } from '@ahmttyydn/openapi-parser/plugins-browser'\n\nawait bundle(input, {\n  plugins: [fetchUrls()],\n  treeShake: false,\n  depth: 2,\n})\n```\n\n##### externalDocumentsKey\n\nThe `externalDocumentsKey` option controls the key used to store external references. This key will contain all bundled external documents. The key is used to maintain a clean separation between the main OpenAPI document and its bundled external references. **Defaults** to `x-ext`.\n\n```ts\nimport { bundle } from '@ahmttyydn/openapi-parser'\nimport { fetchUrls } from '@ahmttyydn/openapi-parser/plugins-browser'\n\nawait bundle(input, {\n  plugins: [fetchUrls()],\n  treeShake: false,\n  externalDocumentsKey: 'x-external-docs',\n})\n```\n\n##### externalDocumentsMappingsKey\n\nThe `externalDocumentsMappingsKey` option controls the key used to maintain a mapping between hashed keys and their original URLs. This mapping is essential for tracking the source of bundled references. **Defaults** to `x-ext-urls`.\n\n```ts\nimport { bundle } from '@ahmttyydn/openapi-parser'\nimport { fetchUrls } from '@ahmttyydn/openapi-parser/plugins-browser'\n\nawait bundle(input, {\n  plugins: [fetchUrls()],\n  treeShake: false,\n  urlMap: true,\n  externalDocumentsKey: 'x-external-urls',\n})\n```\n\n## dereference\n\nDereference all `$ref` pointers in a JSON object, resolving both internal and external references.\n\nThe `dereference` function can operate in two modes:\n\n- **Synchronous (`sync: true`)**: Only internal references (within the same object) are resolved. The result is wrapped in a magic proxy for reactive access. No network requests are made.\n- **Asynchronous (`sync: false` or omitted)**: Both internal and external references (e.g., URLs) are resolved. The function returns a Promise that resolves to the fully dereferenced object, also wrapped in a magic proxy.\n\n### Options\n\n- `sync` (`boolean`):  \n  - If `true`, resolves only internal references synchronously.\n  - If `false` (default), resolves both internal and external references asynchronously and returns a Promise.\n\nThe result is an object with a `success` property. If dereferencing fails (e.g., due to unresolved external references), the result will include an `errors` array describing the issues encountered.\n\n```ts\nimport { dereference } from '@ahmttyydn/json-magic/dereference'\n\nconst result = dereference({ a: 'hello', b: { $ref: '#/a' } }, { sync: true })\n\n// Resolve internal references synchronously\nconsole.log(result)\n```\n\nTo resolve also external references you need to set `sync: false`\n\n```ts\nimport { dereference } from '@ahmttyydn/json-magic/dereference'\n\nconst result = await dereference({ a: 'hello', b: { $ref: 'http://example.com/document.json#/somepath' } }, { sync: false })\n\n// Result with all internal and external references resolved\nconsole.log(result)\n```\n\n## diff\n\nThis package provides a way to compare two json objects and get the differences, resolve conflicts and return conflicts that need to be resolved manually.\n\n### Quickstart\n\n\n```ts\nimport { apply, diff, merge } from '@ahmttyydn/json-magic/diff'\n\nconst baseObject = {\n  openapi: '3.0.0',\n  info: {\n    title: 'Simple API',\n    description: 'A small OpenAPI specification example',\n    version: '1.0.0',\n  },\n}\n\nconst objectV1 = {\n  openapi: '3.0.0',\n  info: {\n    title: 'Simple API',\n    description: 'A small OpenAPI specification example',\n    version: '1.0.0',\n  },\n  change: 'This is a new property',\n}\n\nconst objectV2 = {\n  openapi: '3.0.0',\n  info: {\n    title: 'Simple API',\n    description: 'A small OpenAPI specification example',\n    version: '1.0.1',\n  },\n}\n\n// Merge the changes of both versions with the same parent object\nconst { diffs, conflicts } = merge(\n  diff(baseObject, objectV1),\n  diff(baseObject, objectV2),\n)\n\n// Apply changes from v1 and v2 to the parent object to get the final object\nconst finalDocument = apply(baseObject, diffs)\n```\n\n\n## magic-proxy\n\nA javascript proxy which resolves internal references when accessing a property\n\n### Quick start\n\n```ts\nimport { createMagicProxy, getRaw } from '@ahmttyydn/json-magic/magic-proxy'\n\nconst result = createMagicProxy({\n  a: 'hello',\n  b: {\n    $ref: '#/a'\n  }\n})\n\n/**\n * Output:\n * {\n *  a: 'hello',\n *  b: {\n *    $ref: '#/a',\n *    '$ref-value': 'hello'\n *  }\n * }\n */\nconsole.log(result)\n\nconst rawObject = getRaw(result)\n/**\n * {\n *  a: 'hello',\n *  b: {\n *    $ref: '#/a'\n *  }\n * }\n */\nconsole.log(rawObject)\n```","readmeFilename":"README.md"}