diff --git a/package.json b/package.json index 85124af..4a5bb20 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "homepage": "https://gitlab.com/pushrocks/npmextra#README", "dependencies": { "@push.rocks/smartfile": "^10.0.30", - "@push.rocks/smartjson": "^5.0.8", + "@push.rocks/smartjson": "^5.0.10", "@push.rocks/smartlog": "^3.0.2", "@push.rocks/smartpath": "^5.0.11", "@push.rocks/smartpromise": "^4.0.2", @@ -33,7 +33,7 @@ "@gitzone/tsrun": "^1.2.44", "@gitzone/tstest": "^1.0.77", "@push.rocks/tapbundle": "^5.0.15", - "@types/node": "^20.5.3" + "@types/node": "^20.5.4" }, "files": [ "ts/**/*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d1cf11a..dbe5871 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ dependencies: specifier: ^10.0.30 version: 10.0.30 '@push.rocks/smartjson': - specifier: ^5.0.8 - version: 5.0.8 + specifier: ^5.0.10 + version: 5.0.10 '@push.rocks/smartlog': specifier: ^3.0.2 version: 3.0.3 @@ -30,16 +30,16 @@ devDependencies: version: 2.1.66 '@gitzone/tsrun': specifier: ^1.2.44 - version: 1.2.44(@types/node@20.5.3) + version: 1.2.44(@types/node@20.5.4) '@gitzone/tstest': specifier: ^1.0.77 - version: 1.0.77(@types/node@20.5.3)(sinon@15.2.0) + version: 1.0.77(@types/node@20.5.4)(sinon@15.2.0) '@push.rocks/tapbundle': specifier: ^5.0.15 version: 5.0.15(sinon@15.2.0) '@types/node': - specifier: ^20.5.3 - version: 20.5.3 + specifier: ^20.5.4 + version: 20.5.4 packages: @@ -392,13 +392,13 @@ packages: - supports-color dev: true - /@gitzone/tsrun@1.2.44(@types/node@20.5.3): + /@gitzone/tsrun@1.2.44(@types/node@20.5.4): resolution: {integrity: sha512-7AfL9u+TmD7gLiRaTCimhWm5rq9GGBQnOF4q1FnFh2CAb1FbK5fzUVbj6wo3zGS2H+MSm6dqFA6mvdBI1ox0mQ==} hasBin: true dependencies: '@push.rocks/smartfile': 10.0.30 '@push.rocks/smartshell': 3.0.3 - ts-node: 10.9.1(@types/node@20.5.3)(typescript@5.1.6) + ts-node: 10.9.1(@types/node@20.5.4)(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -406,13 +406,13 @@ packages: - '@types/node' dev: true - /@gitzone/tstest@1.0.77(@types/node@20.5.3)(sinon@15.2.0): + /@gitzone/tstest@1.0.77(@types/node@20.5.4)(sinon@15.2.0): resolution: {integrity: sha512-YzBXnNqkYOiFf8xAA+m8owblrmAut8ukINghYy4DXoUR+5g1IKrpTjK4A8HzIsvVsQRyHPsQ2YFtsk+utqdivQ==} hasBin: true dependencies: '@apiglobal/typedserver': 2.0.65 '@gitzone/tsbundle': 2.0.8 - '@gitzone/tsrun': 1.2.44(@types/node@20.5.3) + '@gitzone/tsrun': 1.2.44(@types/node@20.5.4) '@push.rocks/consolecolor': 2.0.1 '@push.rocks/smartbrowser': 2.0.5 '@push.rocks/smartdelay': 3.0.5 @@ -627,7 +627,7 @@ packages: '@push.rocks/smartdelay': 3.0.5 '@push.rocks/smartfile-interfaces': 1.0.7 '@push.rocks/smarthash': 3.0.2 - '@push.rocks/smartjson': 5.0.8 + '@push.rocks/smartjson': 5.0.10 '@push.rocks/smartmime': 1.0.6 '@push.rocks/smartpath': 5.0.11 '@push.rocks/smartpromise': 4.0.3 @@ -648,8 +648,8 @@ packages: '@types/through2': 2.0.38 through2: 4.0.2 - /@push.rocks/smartjson@5.0.8: - resolution: {integrity: sha512-oVjSX/GEqDivCS76VthWhlujtYDFwpk+5LxuHkJc+6qrpPe7juT4J8ml/PS6xWAB1uLbPviFsKa08iZs5uOQDQ==} + /@push.rocks/smartjson@5.0.10: + resolution: {integrity: sha512-yuntSMGZ+XNHMrbS9RxotaD+eOgoNTcuDoWsttis+N3Mkc9DIam0pt/ER4NU8TgfMmhT/hKwQH+3DJceDzntoA==} dependencies: '@push.rocks/smartstring': 4.0.8 '@types/buffer-json': 2.0.1 @@ -1482,7 +1482,7 @@ packages: /@types/accepts@1.3.5: resolution: {integrity: sha512-jOdnI/3qTpHABjM5cx1Hc0sKsPoYCp+DP/GJRGtDlPd7fiV9oXGGIcjW/ZOxLIvjGz8MA+uMZI9metHlgqbgwQ==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/babel__code-frame@7.0.3: @@ -1493,7 +1493,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/buffer-json@2.0.1: @@ -1519,14 +1519,14 @@ packages: /@types/clean-css@4.2.6: resolution: {integrity: sha512-Ze1tf+LnGPmG6hBFMi0B4TEB0mhF7EiMM5oyjLDNPE9hxrPU0W+5+bHvO+eFPA+bt0iC1zkQMoU/iGdRVjcRbw==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 source-map: 0.6.1 dev: true /@types/co-body@6.1.0: resolution: {integrity: sha512-3e0q2jyDAnx/DSZi0z2H0yoZ2wt5yRDZ+P7ymcMObvq0ufWRT4tsajyO+Q1VwVWiv9PRR4W3YEjEzBjeZlhF+w==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 '@types/qs': 6.9.7 dev: true @@ -1539,7 +1539,7 @@ packages: /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/content-disposition@0.5.5: @@ -1560,13 +1560,13 @@ packages: '@types/connect': 3.4.35 '@types/express': 4.17.17 '@types/keygrip': 1.0.2 - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/cors@2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/debounce@1.2.1: @@ -1580,7 +1580,7 @@ packages: /@types/express-serve-static-core@4.17.35: resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -1598,25 +1598,25 @@ packages: /@types/finalhandler@1.2.0: resolution: {integrity: sha512-NgEZKOhxUSXkwNnWNaMXZaopQ5aFGPAYiEpEWIkQ6Dzc4iS0M1oQsvWne2t+ex9QZUAdTz/ZT4tOXJhWtP6mCw==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/from2@2.3.2: resolution: {integrity: sha512-s1pdctxW2+CA4FOxxTBRxC3RKQL9Br1a2s2LngP4jh1BI84JBL3mDXj87EwcckN9z/IXp8o3ySmvZveGEAAwqw==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 /@types/fs-extra@11.0.1: resolution: {integrity: sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==} dependencies: '@types/jsonfile': 6.1.1 - '@types/node': 20.5.3 + '@types/node': 20.5.4 /@types/glob@8.1.0: resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.5.3 + '@types/node': 20.5.4 /@types/html-minifier@4.0.2: resolution: {integrity: sha512-4IkmkXJP/25R2fZsCHDX2abztXuQRzUAZq39PfCMz2loLFj8vS9y7aF6vDl58koXSTpsF+eL4Lc5Y4Aww/GCTQ==} @@ -1664,7 +1664,7 @@ packages: /@types/jsonfile@6.1.1: resolution: {integrity: sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 /@types/keygrip@1.0.2: resolution: {integrity: sha512-GJhpTepz2udxGexqos8wgaBx4I/zWIDPh/KOGEwAqtuGDkOUJu5eFvwmdBX4AmB8Odsr+9pHCQqiAqDL/yKMKw==} @@ -1686,7 +1686,7 @@ packages: '@types/http-errors': 2.0.1 '@types/keygrip': 1.0.2 '@types/koa-compose': 3.2.5 - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/mime-types@2.1.1: @@ -1711,8 +1711,8 @@ packages: resolution: {integrity: sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ==} dev: true - /@types/node@20.5.3: - resolution: {integrity: sha512-ITI7rbWczR8a/S6qjAW7DMqxqFMjjTo61qZVWJ1ubPvbIQsL5D/TvwjYEalM8Kthpe3hTzOGrF2TGbAu2uyqeA==} + /@types/node@20.5.4: + resolution: {integrity: sha512-Y9vbIAoM31djQZrPYjpTLo0XlaSwOIsrlfE3LpulZeRblttsLQRFRlBAppW0LOxyT3ALj2M5vU1ucQQayQH3jA==} /@types/parse5@6.0.3: resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==} @@ -1741,7 +1741,7 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/serve-static@1.15.2: @@ -1749,7 +1749,7 @@ packages: dependencies: '@types/http-errors': 2.0.1 '@types/mime': 3.0.1 - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/shortid@0.0.29: @@ -1779,7 +1779,7 @@ packages: /@types/through2@2.0.38: resolution: {integrity: sha512-YFu+nHmjxMurkH1BSzA0Z1WrKDAY8jUKPZctNQn7mc+/KKtp2XxnclHFXxdB1m7Iqnzb5aywgP8TMK283LezGQ==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 /@types/trusted-types@2.0.3: resolution: {integrity: sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==} @@ -1810,14 +1810,14 @@ packages: /@types/ws@7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true /@types/yauzl@2.10.0: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 20.5.3 + '@types/node': 20.5.4 dev: true optional: true @@ -2722,7 +2722,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 20.5.3 + '@types/node': 20.5.4 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -2742,7 +2742,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 20.5.3 + '@types/node': 20.5.4 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -5245,7 +5245,7 @@ packages: hasBin: true dev: true - /ts-node@10.9.1(@types/node@20.5.3)(typescript@5.1.6): + /ts-node@10.9.1(@types/node@20.5.4)(typescript@5.1.6): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -5264,7 +5264,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.5.3 + '@types/node': 20.5.4 acorn: 8.10.0 acorn-walk: 8.2.0 arg: 4.1.3 diff --git a/test/somekv.json b/test/somekv.json index c644dab..09b6206 100644 --- a/test/somekv.json +++ b/test/somekv.json @@ -1 +1,3 @@ -{"myKey":"myValue"} \ No newline at end of file +{ + "myKey": "myValue" +} \ No newline at end of file diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 94fea79..7fd9439 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/npmextra', - version: '4.0.0', + version: '4.0.1', description: 'do more with npm' } diff --git a/ts/npmextra.classes.keyvaluestore.ts b/ts/npmextra.classes.keyvaluestore.ts index 65f4ba1..2852f86 100644 --- a/ts/npmextra.classes.keyvaluestore.ts +++ b/ts/npmextra.classes.keyvaluestore.ts @@ -26,7 +26,7 @@ export class KeyValueStore { } this.deletedObject = {}; await plugins.smartfile.memory.toFs( - plugins.smartjson.stringify(this.dataObject), + plugins.smartjson.stringifyPretty(this.dataObject), this.filePath ); },