@qubit-ltd/json 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json.min.cjs +1 -1
- package/dist/json.min.cjs.map +1 -1
- package/dist/json.min.mjs +1 -1
- package/dist/json.min.mjs.map +1 -1
- package/doc/api/Json.html +1 -1
- package/doc/api/LosslessNumber.html +1 -1
- package/doc/api/global.html +1 -1
- package/doc/api/index.html +1 -1
- package/doc/api/scripts/core.js +3 -3
- package/doc/api/scripts/resize.js +2 -2
- package/doc/json.min.visualization.html +1 -1
- package/doc/json.visualization.html +1 -1
- package/package.json +8 -8
package/doc/api/index.html
CHANGED
|
@@ -199,4 +199,4 @@ cd js-json
|
|
|
199
199
|
</code></pre></li></ol><h3>发布流程</h3><ol><li>更新 package.json 中的版本号</li><li>运行测试和 lint 检查:<pre class="prettyprint source lang-sh"><code>yarn lint && yarn test
|
|
200
200
|
</code></pre></li><li>构建库:<pre class="prettyprint source lang-sh"><code>yarn build:all
|
|
201
201
|
</code></pre></li><li>发布到 npm:<pre class="prettyprint source lang-sh"><code>yarn deploy
|
|
202
|
-
</code></pre></li></ol><h2><span id="license">许可证</span></h2><p><a href="https://npmjs.com/package/@qubit-ltd/json">@qubit-ltd/json</a> 根据 Apache 2.0 许可证分发。详情请参阅 <a href="LICENSE">LICENSE</a> 文件。</p><h2><span id="acknowledgements">致谢</span></h2><p>该项目基于并集成了多个开源库的代码,这些库在处理大数字和自定义 JSON 解析方面做出了重要贡献。我们想特别感谢以下项目的作者:</p><ul><li><a href="https://github.com/sidorares/json-bigint">json-bigint</a>:提供对使用 BigInt 解析和字符串化 JSON 的支持,使得可以精确处理大数字。</li><li><a href="https://github.com/josdejong/lossless-json">lossless-json</a>:一个确保在处理浮点数时保持完全精度的库,提供无损的 JSON 数字处理。</li><li><a href="https://github.com/jawj/json-custom-numbers">json-custom-numbers</a>:允许在 JSON 解析和字符串化过程中自定义数字处理,提供灵活的数值表示。</li></ul><p>我们对这些贡献者的工作表示感谢,这些工作对本库功能的实现起到了至关重要的作用。</p></article></section></div></div></div><div class="search-container" id="PkfLWpAbet" style="display:none"><div class="wrapper" id="iCxFxjkHbP"><button class="icon-button search-close-button" id="VjLlGakifb" aria-label="关闭搜索"><svg><use xlink:href="#close-icon"></use></svg></button><div class="search-box-c"><svg><use xlink:href="#search-icon"></use></svg> <input type="text" id="vpcKVYIppa" class="search-input" placeholder="搜索..." autofocus></div><div class="search-result-c" id="fWwVHRuDuN"><span class="search-result-c-text">输入任何内容查看搜索结果</span></div></div></div><div class="mobile-menu-icon-container"><button class="icon-button" id="mobile-menu" data-isopen="false" aria-label="menu"><svg><use xlink:href="#menu-icon"></use></svg></button></div><div id="mobile-sidebar" class="mobile-sidebar-container"><div class="mobile-sidebar-wrapper"><div class="mobile-nav-links"></div><div class="mobile-sidebar-items-c"><div class="sidebar-section-title"><a href="index.html" class="sidebar-home-anchor">首页</a></div><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-类"><div>类</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="Json.html">Json</a></div><div class="sidebar-section-children"><a href="LosslessNumber.html">LosslessNumber</a></div></div><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-全局"><div>全局</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="global.html#getUnsafeReason">getUnsafeReason</a></div><div class="sidebar-section-children"><a href="global.html#isBigInt">isBigInt</a></div><div class="sidebar-section-children"><a href="global.html#isInteger">isInteger</a></div><div class="sidebar-section-children"><a href="global.html#isNumber">isNumber</a></div><div class="sidebar-section-children"><a href="global.html#isSafeNumber">isSafeNumber</a></div><div class="sidebar-section-children"><a href="global.html#json">json</a></div><div class="sidebar-section-children"><a href="global.html#toSafeNumberOrThrow">toSafeNumberOrThrow</a></div></div></div><div class="mobile-navbar-actions"><div class="navbar-right-item"><button class="icon-button home-button" aria-label="go-to-homepage"><svg><use xlink:href="#home-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button search-button" aria-label="open-search"><svg><use xlink:href="#search-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button theme-toggle" aria-label="toggle-theme"><svg><use class="theme-svg-use" xlink:href="#light-theme-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button font-size" aria-label="change-font-size"><svg><use xlink:href="#font-size-icon"></use></svg></button></div></div></div></div><script type="text/javascript" src="scripts/core.min.js"></script><script src="scripts/search.min.js" defer="defer"></script><script src="scripts/third-party/fuse.js" defer="defer"></script><script type="text/javascript">var tocbotInstance=tocbot.init({tocSelector:"#eed4d2a0bfd64539bb9df78095dec881",contentSelector:".main-content",headingSelector:"h1, h2, h3",hasInnerContainers:!0,scrollContainer:".main-content",headingsOffset:130,onClick:bringLinkToView})</script><script>document.addEventListener("DOMContentLoaded",
|
|
202
|
+
</code></pre></li></ol><h2><span id="license">许可证</span></h2><p><a href="https://npmjs.com/package/@qubit-ltd/json">@qubit-ltd/json</a> 根据 Apache 2.0 许可证分发。详情请参阅 <a href="LICENSE">LICENSE</a> 文件。</p><h2><span id="acknowledgements">致谢</span></h2><p>该项目基于并集成了多个开源库的代码,这些库在处理大数字和自定义 JSON 解析方面做出了重要贡献。我们想特别感谢以下项目的作者:</p><ul><li><a href="https://github.com/sidorares/json-bigint">json-bigint</a>:提供对使用 BigInt 解析和字符串化 JSON 的支持,使得可以精确处理大数字。</li><li><a href="https://github.com/josdejong/lossless-json">lossless-json</a>:一个确保在处理浮点数时保持完全精度的库,提供无损的 JSON 数字处理。</li><li><a href="https://github.com/jawj/json-custom-numbers">json-custom-numbers</a>:允许在 JSON 解析和字符串化过程中自定义数字处理,提供灵活的数值表示。</li></ul><p>我们对这些贡献者的工作表示感谢,这些工作对本库功能的实现起到了至关重要的作用。</p></article></section></div></div></div><div class="search-container" id="PkfLWpAbet" style="display:none"><div class="wrapper" id="iCxFxjkHbP"><button class="icon-button search-close-button" id="VjLlGakifb" aria-label="关闭搜索"><svg><use xlink:href="#close-icon"></use></svg></button><div class="search-box-c"><svg><use xlink:href="#search-icon"></use></svg> <input type="text" id="vpcKVYIppa" class="search-input" placeholder="搜索..." autofocus></div><div class="search-result-c" id="fWwVHRuDuN"><span class="search-result-c-text">输入任何内容查看搜索结果</span></div></div></div><div class="mobile-menu-icon-container"><button class="icon-button" id="mobile-menu" data-isopen="false" aria-label="menu"><svg><use xlink:href="#menu-icon"></use></svg></button></div><div id="mobile-sidebar" class="mobile-sidebar-container"><div class="mobile-sidebar-wrapper"><div class="mobile-nav-links"></div><div class="mobile-sidebar-items-c"><div class="sidebar-section-title"><a href="index.html" class="sidebar-home-anchor">首页</a></div><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-类"><div>类</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="Json.html">Json</a></div><div class="sidebar-section-children"><a href="LosslessNumber.html">LosslessNumber</a></div></div><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-全局"><div>全局</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="global.html#getUnsafeReason">getUnsafeReason</a></div><div class="sidebar-section-children"><a href="global.html#isBigInt">isBigInt</a></div><div class="sidebar-section-children"><a href="global.html#isInteger">isInteger</a></div><div class="sidebar-section-children"><a href="global.html#isNumber">isNumber</a></div><div class="sidebar-section-children"><a href="global.html#isSafeNumber">isSafeNumber</a></div><div class="sidebar-section-children"><a href="global.html#json">json</a></div><div class="sidebar-section-children"><a href="global.html#toSafeNumberOrThrow">toSafeNumberOrThrow</a></div></div></div><div class="mobile-navbar-actions"><div class="navbar-right-item"><button class="icon-button home-button" aria-label="go-to-homepage"><svg><use xlink:href="#home-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button search-button" aria-label="open-search"><svg><use xlink:href="#search-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button theme-toggle" aria-label="toggle-theme"><svg><use class="theme-svg-use" xlink:href="#light-theme-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button font-size" aria-label="change-font-size"><svg><use xlink:href="#font-size-icon"></use></svg></button></div></div></div></div><script type="text/javascript" src="scripts/core.min.js"></script><script src="scripts/search.min.js" defer="defer"></script><script src="scripts/third-party/fuse.js" defer="defer"></script><script type="text/javascript">var tocbotInstance=tocbot.init({tocSelector:"#eed4d2a0bfd64539bb9df78095dec881",contentSelector:".main-content",headingSelector:"h1, h2, h3",hasInnerContainers:!0,scrollContainer:".main-content",headingsOffset:130,onClick:bringLinkToView})</script><script>document.addEventListener("DOMContentLoaded",function(){"undefined"!=typeof tippy&&(tippy(".home-button",{content:"回到首页",delay:500}),tippy(".theme-toggle",{content:"切换主题",delay:500}),tippy(".search-button",{content:"搜索",delay:500}),tippy(".font-size",{content:"更改字体大小",delay:500}))})</script></body></html>
|
package/doc/api/scripts/core.js
CHANGED
|
@@ -179,7 +179,7 @@ function bringElementIntoView(element, updateHistory = true) {
|
|
|
179
179
|
setTimeout(
|
|
180
180
|
// eslint-disable-next-line no-undef
|
|
181
181
|
() => tocbotInstance.updateTocListActiveElement(element),
|
|
182
|
-
60
|
|
182
|
+
60,
|
|
183
183
|
);
|
|
184
184
|
}
|
|
185
185
|
var navbar = document.querySelector(".navbar-container");
|
|
@@ -431,7 +431,7 @@ function localUpdateFontSize(fontSize) {
|
|
|
431
431
|
html.style.fontSize = fontSize + "px";
|
|
432
432
|
|
|
433
433
|
var fontSizeText = document.querySelector(
|
|
434
|
-
"#b77a68a492f343baabea06fad81f651e"
|
|
434
|
+
"#b77a68a492f343baabea06fad81f651e",
|
|
435
435
|
);
|
|
436
436
|
|
|
437
437
|
if (fontSizeText) {
|
|
@@ -621,7 +621,7 @@ function highlightActiveLinkInSidebar() {
|
|
|
621
621
|
if (!element) {
|
|
622
622
|
try {
|
|
623
623
|
element = document.querySelector(
|
|
624
|
-
`.sidebar a[href*='${targetURL.split("#")[0]}']
|
|
624
|
+
`.sidebar a[href*='${targetURL.split("#")[0]}']`,
|
|
625
625
|
);
|
|
626
626
|
} catch (e) {
|
|
627
627
|
console.error(e);
|
|
@@ -11,7 +11,7 @@ var NAVBAR_OPTIONS = {};
|
|
|
11
11
|
var mainSection = document.querySelector("#main");
|
|
12
12
|
var localStorageResizeObject = JSON.parse(
|
|
13
13
|
// eslint-disable-next-line no-undef
|
|
14
|
-
localStorage.getItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY)
|
|
14
|
+
localStorage.getItem(NAVBAR_RESIZE_LOCAL_STORAGE_KEY),
|
|
15
15
|
);
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -66,7 +66,7 @@ var NAVBAR_OPTIONS = {};
|
|
|
66
66
|
NAVBAR_RESIZE_LOCAL_STORAGE_KEY,
|
|
67
67
|
JSON.stringify({
|
|
68
68
|
width: navbar.style.width,
|
|
69
|
-
})
|
|
69
|
+
}),
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
|
|
|
4929
4929
|
</script>
|
|
4930
4930
|
<script>
|
|
4931
4931
|
/*<!--*/
|
|
4932
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"json.min.mjs","children":[{"name":"node_modules/json-custom-numbers","children":[{"uid":"
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"json.min.mjs","children":[{"name":"node_modules/json-custom-numbers","children":[{"uid":"f488327a-1","name":"parse.mjs"},{"uid":"f488327a-3","name":"stringify.mjs"}]},{"name":"src","children":[{"name":"utils","children":[{"uid":"f488327a-5","name":"is-integer.js"},{"uid":"f488327a-7","name":"extract-significant-digits.js"},{"uid":"f488327a-9","name":"is-number.js"},{"uid":"f488327a-11","name":"is-safe-number.js"},{"uid":"f488327a-13","name":"get-unsafe-reason.js"},{"uid":"f488327a-15","name":"lossless-number.js"},{"uid":"f488327a-25","name":"is-bigint.js"},{"uid":"f488327a-27","name":"to-safe-number-or-throw.js"}]},{"uid":"f488327a-17","name":"parse-number.js"},{"uid":"f488327a-19","name":"format-number.js"},{"uid":"f488327a-21","name":"collection-replacer.js"},{"uid":"f488327a-23","name":"json.js"},{"uid":"f488327a-29","name":"index.js"}]}]}],"isRoot":true},"nodeParts":{"f488327a-1":{"renderedLength":5058,"gzipLength":2142,"brotliLength":1928,"metaUid":"f488327a-0"},"f488327a-3":{"renderedLength":2678,"gzipLength":1398,"brotliLength":1240,"metaUid":"f488327a-2"},"f488327a-5":{"renderedLength":726,"gzipLength":347,"brotliLength":290,"metaUid":"f488327a-4"},"f488327a-7":{"renderedLength":1088,"gzipLength":477,"brotliLength":393,"metaUid":"f488327a-6"},"f488327a-9":{"renderedLength":844,"gzipLength":434,"brotliLength":338,"metaUid":"f488327a-8"},"f488327a-11":{"renderedLength":3100,"gzipLength":1084,"brotliLength":861,"metaUid":"f488327a-10"},"f488327a-13":{"renderedLength":1258,"gzipLength":483,"brotliLength":403,"metaUid":"f488327a-12"},"f488327a-15":{"renderedLength":2673,"gzipLength":1033,"brotliLength":854,"metaUid":"f488327a-14"},"f488327a-17":{"renderedLength":834,"gzipLength":359,"brotliLength":290,"metaUid":"f488327a-16"},"f488327a-19":{"renderedLength":1045,"gzipLength":383,"brotliLength":321,"metaUid":"f488327a-18"},"f488327a-21":{"renderedLength":862,"gzipLength":341,"brotliLength":295,"metaUid":"f488327a-20"},"f488327a-23":{"renderedLength":7855,"gzipLength":2576,"brotliLength":2132,"metaUid":"f488327a-22"},"f488327a-25":{"renderedLength":670,"gzipLength":324,"brotliLength":252,"metaUid":"f488327a-24"},"f488327a-27":{"renderedLength":1512,"gzipLength":637,"brotliLength":533,"metaUid":"f488327a-26"},"f488327a-29":{"renderedLength":264,"gzipLength":101,"brotliLength":98,"metaUid":"f488327a-28"}},"nodeMetas":{"f488327a-0":{"id":"/node_modules/json-custom-numbers/parse.mjs","moduleParts":{"json.min.mjs":"f488327a-1"},"imported":[],"importedBy":[{"uid":"f488327a-33"}]},"f488327a-2":{"id":"/node_modules/json-custom-numbers/stringify.mjs","moduleParts":{"json.min.mjs":"f488327a-3"},"imported":[],"importedBy":[{"uid":"f488327a-33"}]},"f488327a-4":{"id":"/src/utils/is-integer.js","moduleParts":{"json.min.mjs":"f488327a-5"},"imported":[],"importedBy":[{"uid":"f488327a-28"},{"uid":"f488327a-10"},{"uid":"f488327a-12"},{"uid":"f488327a-16"}]},"f488327a-6":{"id":"/src/utils/extract-significant-digits.js","moduleParts":{"json.min.mjs":"f488327a-7"},"imported":[],"importedBy":[{"uid":"f488327a-10"},{"uid":"f488327a-12"}]},"f488327a-8":{"id":"/src/utils/is-number.js","moduleParts":{"json.min.mjs":"f488327a-9"},"imported":[],"importedBy":[{"uid":"f488327a-28"},{"uid":"f488327a-14"},{"uid":"f488327a-10"},{"uid":"f488327a-12"}]},"f488327a-10":{"id":"/src/utils/is-safe-number.js","moduleParts":{"json.min.mjs":"f488327a-11"},"imported":[{"uid":"f488327a-4"},{"uid":"f488327a-6"},{"uid":"f488327a-8"}],"importedBy":[{"uid":"f488327a-28"},{"uid":"f488327a-26"},{"uid":"f488327a-16"}]},"f488327a-12":{"id":"/src/utils/get-unsafe-reason.js","moduleParts":{"json.min.mjs":"f488327a-13"},"imported":[{"uid":"f488327a-4"},{"uid":"f488327a-6"},{"uid":"f488327a-8"}],"importedBy":[{"uid":"f488327a-28"},{"uid":"f488327a-14"},{"uid":"f488327a-26"}]},"f488327a-14":{"id":"/src/utils/lossless-number.js","moduleParts":{"json.min.mjs":"f488327a-15"},"imported":[{"uid":"f488327a-30"},{"uid":"f488327a-31"},{"uid":"f488327a-32"},{"uid":"f488327a-8"},{"uid":"f488327a-12"}],"importedBy":[{"uid":"f488327a-28"},{"uid":"f488327a-16"},{"uid":"f488327a-18"}]},"f488327a-16":{"id":"/src/parse-number.js","moduleParts":{"json.min.mjs":"f488327a-17"},"imported":[{"uid":"f488327a-4"},{"uid":"f488327a-10"},{"uid":"f488327a-14"}],"importedBy":[{"uid":"f488327a-22"}]},"f488327a-18":{"id":"/src/format-number.js","moduleParts":{"json.min.mjs":"f488327a-19"},"imported":[{"uid":"f488327a-14"}],"importedBy":[{"uid":"f488327a-22"}]},"f488327a-20":{"id":"/src/collection-replacer.js","moduleParts":{"json.min.mjs":"f488327a-21"},"imported":[],"importedBy":[{"uid":"f488327a-22"}]},"f488327a-22":{"id":"/src/json.js","moduleParts":{"json.min.mjs":"f488327a-23"},"imported":[{"uid":"f488327a-30"},{"uid":"f488327a-31"},{"uid":"f488327a-32"},{"uid":"f488327a-33"},{"uid":"f488327a-16"},{"uid":"f488327a-18"},{"uid":"f488327a-20"}],"importedBy":[{"uid":"f488327a-28"}]},"f488327a-24":{"id":"/src/utils/is-bigint.js","moduleParts":{"json.min.mjs":"f488327a-25"},"imported":[],"importedBy":[{"uid":"f488327a-28"}]},"f488327a-26":{"id":"/src/utils/to-safe-number-or-throw.js","moduleParts":{"json.min.mjs":"f488327a-27"},"imported":[{"uid":"f488327a-12"},{"uid":"f488327a-10"}],"importedBy":[{"uid":"f488327a-28"}]},"f488327a-28":{"id":"/src/index.js","moduleParts":{"json.min.mjs":"f488327a-29"},"imported":[{"uid":"f488327a-22"},{"uid":"f488327a-14"},{"uid":"f488327a-24"},{"uid":"f488327a-4"},{"uid":"f488327a-8"},{"uid":"f488327a-10"},{"uid":"f488327a-12"},{"uid":"f488327a-26"}],"importedBy":[],"isEntry":true},"f488327a-30":{"id":"@babel/runtime/helpers/classCallCheck","moduleParts":{},"imported":[],"importedBy":[{"uid":"f488327a-22"},{"uid":"f488327a-14"}],"isExternal":true},"f488327a-31":{"id":"@babel/runtime/helpers/createClass","moduleParts":{},"imported":[],"importedBy":[{"uid":"f488327a-22"},{"uid":"f488327a-14"}],"isExternal":true},"f488327a-32":{"id":"@babel/runtime/helpers/defineProperty","moduleParts":{},"imported":[],"importedBy":[{"uid":"f488327a-22"},{"uid":"f488327a-14"}],"isExternal":true},"f488327a-33":{"id":"/node_modules/json-custom-numbers/index.mjs","moduleParts":{},"imported":[{"uid":"f488327a-0"},{"uid":"f488327a-2"}],"importedBy":[{"uid":"f488327a-22"}]}},"env":{"rollup":"4.59.0"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
|
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
|
|
|
4929
4929
|
</script>
|
|
4930
4930
|
<script>
|
|
4931
4931
|
/*<!--*/
|
|
4932
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"json.mjs","children":[{"name":"node_modules/json-custom-numbers","children":[{"uid":"
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"json.mjs","children":[{"name":"node_modules/json-custom-numbers","children":[{"uid":"6e0f4ec4-1","name":"parse.mjs"},{"uid":"6e0f4ec4-3","name":"stringify.mjs"}]},{"name":"src","children":[{"name":"utils","children":[{"uid":"6e0f4ec4-5","name":"is-integer.js"},{"uid":"6e0f4ec4-7","name":"extract-significant-digits.js"},{"uid":"6e0f4ec4-9","name":"is-number.js"},{"uid":"6e0f4ec4-11","name":"is-safe-number.js"},{"uid":"6e0f4ec4-13","name":"get-unsafe-reason.js"},{"uid":"6e0f4ec4-15","name":"lossless-number.js"},{"uid":"6e0f4ec4-25","name":"is-bigint.js"},{"uid":"6e0f4ec4-27","name":"to-safe-number-or-throw.js"}]},{"uid":"6e0f4ec4-17","name":"parse-number.js"},{"uid":"6e0f4ec4-19","name":"format-number.js"},{"uid":"6e0f4ec4-21","name":"collection-replacer.js"},{"uid":"6e0f4ec4-23","name":"json.js"},{"uid":"6e0f4ec4-29","name":"index.js"}]}]}],"isRoot":true},"nodeParts":{"6e0f4ec4-1":{"renderedLength":5058,"gzipLength":2142,"brotliLength":1928,"metaUid":"6e0f4ec4-0"},"6e0f4ec4-3":{"renderedLength":2678,"gzipLength":1398,"brotliLength":1240,"metaUid":"6e0f4ec4-2"},"6e0f4ec4-5":{"renderedLength":726,"gzipLength":347,"brotliLength":290,"metaUid":"6e0f4ec4-4"},"6e0f4ec4-7":{"renderedLength":1088,"gzipLength":477,"brotliLength":393,"metaUid":"6e0f4ec4-6"},"6e0f4ec4-9":{"renderedLength":844,"gzipLength":434,"brotliLength":338,"metaUid":"6e0f4ec4-8"},"6e0f4ec4-11":{"renderedLength":3100,"gzipLength":1084,"brotliLength":861,"metaUid":"6e0f4ec4-10"},"6e0f4ec4-13":{"renderedLength":1258,"gzipLength":483,"brotliLength":403,"metaUid":"6e0f4ec4-12"},"6e0f4ec4-15":{"renderedLength":2673,"gzipLength":1033,"brotliLength":854,"metaUid":"6e0f4ec4-14"},"6e0f4ec4-17":{"renderedLength":834,"gzipLength":359,"brotliLength":290,"metaUid":"6e0f4ec4-16"},"6e0f4ec4-19":{"renderedLength":1045,"gzipLength":383,"brotliLength":321,"metaUid":"6e0f4ec4-18"},"6e0f4ec4-21":{"renderedLength":862,"gzipLength":341,"brotliLength":295,"metaUid":"6e0f4ec4-20"},"6e0f4ec4-23":{"renderedLength":7855,"gzipLength":2576,"brotliLength":2132,"metaUid":"6e0f4ec4-22"},"6e0f4ec4-25":{"renderedLength":670,"gzipLength":324,"brotliLength":252,"metaUid":"6e0f4ec4-24"},"6e0f4ec4-27":{"renderedLength":1512,"gzipLength":637,"brotliLength":533,"metaUid":"6e0f4ec4-26"},"6e0f4ec4-29":{"renderedLength":263,"gzipLength":100,"brotliLength":97,"metaUid":"6e0f4ec4-28"}},"nodeMetas":{"6e0f4ec4-0":{"id":"/node_modules/json-custom-numbers/parse.mjs","moduleParts":{"json.mjs":"6e0f4ec4-1"},"imported":[],"importedBy":[{"uid":"6e0f4ec4-33"}]},"6e0f4ec4-2":{"id":"/node_modules/json-custom-numbers/stringify.mjs","moduleParts":{"json.mjs":"6e0f4ec4-3"},"imported":[],"importedBy":[{"uid":"6e0f4ec4-33"}]},"6e0f4ec4-4":{"id":"/src/utils/is-integer.js","moduleParts":{"json.mjs":"6e0f4ec4-5"},"imported":[],"importedBy":[{"uid":"6e0f4ec4-28"},{"uid":"6e0f4ec4-10"},{"uid":"6e0f4ec4-12"},{"uid":"6e0f4ec4-16"}]},"6e0f4ec4-6":{"id":"/src/utils/extract-significant-digits.js","moduleParts":{"json.mjs":"6e0f4ec4-7"},"imported":[],"importedBy":[{"uid":"6e0f4ec4-10"},{"uid":"6e0f4ec4-12"}]},"6e0f4ec4-8":{"id":"/src/utils/is-number.js","moduleParts":{"json.mjs":"6e0f4ec4-9"},"imported":[],"importedBy":[{"uid":"6e0f4ec4-28"},{"uid":"6e0f4ec4-14"},{"uid":"6e0f4ec4-10"},{"uid":"6e0f4ec4-12"}]},"6e0f4ec4-10":{"id":"/src/utils/is-safe-number.js","moduleParts":{"json.mjs":"6e0f4ec4-11"},"imported":[{"uid":"6e0f4ec4-4"},{"uid":"6e0f4ec4-6"},{"uid":"6e0f4ec4-8"}],"importedBy":[{"uid":"6e0f4ec4-28"},{"uid":"6e0f4ec4-26"},{"uid":"6e0f4ec4-16"}]},"6e0f4ec4-12":{"id":"/src/utils/get-unsafe-reason.js","moduleParts":{"json.mjs":"6e0f4ec4-13"},"imported":[{"uid":"6e0f4ec4-4"},{"uid":"6e0f4ec4-6"},{"uid":"6e0f4ec4-8"}],"importedBy":[{"uid":"6e0f4ec4-28"},{"uid":"6e0f4ec4-14"},{"uid":"6e0f4ec4-26"}]},"6e0f4ec4-14":{"id":"/src/utils/lossless-number.js","moduleParts":{"json.mjs":"6e0f4ec4-15"},"imported":[{"uid":"6e0f4ec4-30"},{"uid":"6e0f4ec4-31"},{"uid":"6e0f4ec4-32"},{"uid":"6e0f4ec4-8"},{"uid":"6e0f4ec4-12"}],"importedBy":[{"uid":"6e0f4ec4-28"},{"uid":"6e0f4ec4-16"},{"uid":"6e0f4ec4-18"}]},"6e0f4ec4-16":{"id":"/src/parse-number.js","moduleParts":{"json.mjs":"6e0f4ec4-17"},"imported":[{"uid":"6e0f4ec4-4"},{"uid":"6e0f4ec4-10"},{"uid":"6e0f4ec4-14"}],"importedBy":[{"uid":"6e0f4ec4-22"}]},"6e0f4ec4-18":{"id":"/src/format-number.js","moduleParts":{"json.mjs":"6e0f4ec4-19"},"imported":[{"uid":"6e0f4ec4-14"}],"importedBy":[{"uid":"6e0f4ec4-22"}]},"6e0f4ec4-20":{"id":"/src/collection-replacer.js","moduleParts":{"json.mjs":"6e0f4ec4-21"},"imported":[],"importedBy":[{"uid":"6e0f4ec4-22"}]},"6e0f4ec4-22":{"id":"/src/json.js","moduleParts":{"json.mjs":"6e0f4ec4-23"},"imported":[{"uid":"6e0f4ec4-30"},{"uid":"6e0f4ec4-31"},{"uid":"6e0f4ec4-32"},{"uid":"6e0f4ec4-33"},{"uid":"6e0f4ec4-16"},{"uid":"6e0f4ec4-18"},{"uid":"6e0f4ec4-20"}],"importedBy":[{"uid":"6e0f4ec4-28"}]},"6e0f4ec4-24":{"id":"/src/utils/is-bigint.js","moduleParts":{"json.mjs":"6e0f4ec4-25"},"imported":[],"importedBy":[{"uid":"6e0f4ec4-28"}]},"6e0f4ec4-26":{"id":"/src/utils/to-safe-number-or-throw.js","moduleParts":{"json.mjs":"6e0f4ec4-27"},"imported":[{"uid":"6e0f4ec4-12"},{"uid":"6e0f4ec4-10"}],"importedBy":[{"uid":"6e0f4ec4-28"}]},"6e0f4ec4-28":{"id":"/src/index.js","moduleParts":{"json.mjs":"6e0f4ec4-29"},"imported":[{"uid":"6e0f4ec4-22"},{"uid":"6e0f4ec4-14"},{"uid":"6e0f4ec4-24"},{"uid":"6e0f4ec4-4"},{"uid":"6e0f4ec4-8"},{"uid":"6e0f4ec4-10"},{"uid":"6e0f4ec4-12"},{"uid":"6e0f4ec4-26"}],"importedBy":[],"isEntry":true},"6e0f4ec4-30":{"id":"@babel/runtime/helpers/classCallCheck","moduleParts":{},"imported":[],"importedBy":[{"uid":"6e0f4ec4-22"},{"uid":"6e0f4ec4-14"}],"isExternal":true},"6e0f4ec4-31":{"id":"@babel/runtime/helpers/createClass","moduleParts":{},"imported":[],"importedBy":[{"uid":"6e0f4ec4-22"},{"uid":"6e0f4ec4-14"}],"isExternal":true},"6e0f4ec4-32":{"id":"@babel/runtime/helpers/defineProperty","moduleParts":{},"imported":[],"importedBy":[{"uid":"6e0f4ec4-22"},{"uid":"6e0f4ec4-14"}],"isExternal":true},"6e0f4ec4-33":{"id":"/node_modules/json-custom-numbers/index.mjs","moduleParts":{},"imported":[{"uid":"6e0f4ec4-0"},{"uid":"6e0f4ec4-2"}],"importedBy":[{"uid":"6e0f4ec4-22"}]}},"env":{"rollup":"4.59.0"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qubit-ltd/json",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "A JavaScript library for parsing and formatting JSON data.",
|
|
5
5
|
"author": "Haixing Hu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
"@babel/preset-env": "^7.28.3",
|
|
59
59
|
"@babel/runtime": "^7.28.4",
|
|
60
60
|
"@jest/core": "^30.1.3",
|
|
61
|
-
"@qubit-ltd/eslint-config": "^2.0.
|
|
62
|
-
"@qubit-ltd/jsdoc-theme": "^1.5.
|
|
63
|
-
"@qubit-ltd/rollup-builder": "^1.8.
|
|
64
|
-
"@rollup/plugin-alias": "^
|
|
61
|
+
"@qubit-ltd/eslint-config": "^2.0.1",
|
|
62
|
+
"@qubit-ltd/jsdoc-theme": "^1.5.2",
|
|
63
|
+
"@qubit-ltd/rollup-builder": "^1.8.14",
|
|
64
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
65
65
|
"@rollup/plugin-babel": "^6.0.4",
|
|
66
|
-
"@rollup/plugin-commonjs": "^
|
|
66
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
67
67
|
"@rollup/plugin-json": "^6.1.0",
|
|
68
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
69
|
-
"@rollup/plugin-terser": "^0.4.
|
|
68
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
69
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
70
70
|
"babel-jest": "^30.1.2",
|
|
71
71
|
"check-es-version": "^1.5.1",
|
|
72
72
|
"core-js": "^3.45.1",
|