Skip to content

Commit

Permalink
updated od-jsontag, switched convert.mjs to that
Browse files Browse the repository at this point in the history
  • Loading branch information
poef committed Apr 17, 2024
1 parent 7162609 commit 25927bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"start": "node server.mjs"
},
"dependencies": {
"@muze-nl/jsontag": "^0.9.1",
"@muze-nl/jsontag": "^0.9.6",
"@muze-nl/jsontag-types": "^0.1.1",
"@muze-nl/simplystore": "file:../",
"eslint": "^8.56.0",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"bugs": "https://github.com/simplyedit/simplystore/issues",
"homepage": "https://github.com/simplyedit/simplystore#readme",
"dependencies": {
"@muze-nl/jsontag": "^0.9.1",
"@muze-nl/od-jsontag": "^0.1.1",
"@muze-nl/jsontag": "^0.9.6",
"@muze-nl/od-jsontag": "^0.1.4",
"codemirror": "^6.0.1",
"express": "^4.18.1",
"jaqt": "^0.6.2",
Expand Down
4 changes: 2 additions & 2 deletions scripts/convert.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import JSONTag from '@muze-nl/jsontag'
import fastStringify from '../src/fastStringify.mjs'
import serialize, { stringify } from '@muze-nl/od-jsontag/src/serialize.mjs'
import fs from 'node:fs'

if (process.argv.length<=3) {
Expand All @@ -18,7 +18,7 @@ let input = fs.readFileSync(inputFile, 'utf-8')
let data = JSONTag.parse(input)

// write resultset to output
let strData = fastStringify(data)
let strData = stringify(serialize(data))

fs.writeFileSync(outputFile, strData)

Expand Down

0 comments on commit 25927bf

Please sign in to comment.