Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Oct 8, 2018
1 parent 252ef5e commit d50a48c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jsonic-foot.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
j = 0
for( i in val ) {
if( j >= opts.maxitems ) break;
j++

var pass = true
for( k = 0; k < opts.exclude.length && pass; k++ ) {
Expand All @@ -42,6 +41,7 @@
if( null != str && pass ) {
var n = i.match(/^[a-zA-Z0-9_$]+$/) ? i : JSON.stringify(i)
out.push( n+':'+str )
j++
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion jsonic.js
Original file line number Diff line number Diff line change
Expand Up @@ -2121,7 +2121,6 @@ var jsonic_parser = (function() {
j = 0
for( i in val ) {
if( j >= opts.maxitems ) break;
j++

var pass = true
for( k = 0; k < opts.exclude.length && pass; k++ ) {
Expand All @@ -2134,6 +2133,7 @@ var jsonic_parser = (function() {
if( null != str && pass ) {
var n = i.match(/^[a-zA-Z0-9_$]+$/) ? i : JSON.stringify(i)
out.push( n+':'+str )
j++
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "jsonic",
"version": "0.3.0",
"version": "0.3.1",
"description": "A JSON parser that isn't strict.",
"main": "jsonic.js",
"scripts": {
"test": "jasmine-node ./test ; phantomjs test/run-jasmine.js test/jasmine.html",
"build": "./build.sh"
"build": "./build.sh",
"clean": "rm -rf node_modules yarn.lock package-lock.json",
"repo-tag": "REPO_VERSION=`node -e \"console.log(require('./package').version)\"`; echo TAG: v$REPO_VERSION; git commit -a -m v$REPO_VERSION; git push; git tag v$REPO_VERSION; git push --tags;",
"repo-publish": "npm run repo-tag; npm publish"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit d50a48c

Please sign in to comment.