forked from commenthol/serialize-to-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
57 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ sudo: false | |
language: node_js | ||
|
||
node_js: | ||
- "4.8" | ||
- "6.10" | ||
- 6 | ||
- 8 | ||
- node | ||
|
||
script: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ function serialize (source, opts) { | |
} else if (util.isBuffer(source)) { | ||
// check for buffer first otherwise tests fail on [email protected] | ||
// looks like buffers are accidentially detected as typed arrays | ||
out += "new Buffer('" + source.toString('base64') + "', 'base64')" | ||
out += "new Buffer('" + source.toString('base64') + "', 'base64')" // FIXME replace with Buffer.from | ||
} else if ((type = util.isTypedArray(source))) { | ||
tmp = [] | ||
for (i = 0; i < source.length; i++) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,51 +2,36 @@ | |
"name": "serialize-to-js", | ||
"version": "1.1.1", | ||
"description": "serialize objects to javascript", | ||
"main": "lib", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"keywords": [ | ||
"javascript", | ||
"objects", | ||
"serialize" | ||
], | ||
"homepage": "https://github.com/commenthol/serialize-to-js", | ||
"bugs": { | ||
"url": "https://github.com/commenthol/serialize-to-js/issues" | ||
}, | ||
"license": "MIT", | ||
"author": "commenthol <[email protected]>", | ||
"main": "lib", | ||
"directories": { | ||
"doc": "doc", | ||
"test": "test" | ||
}, | ||
"dependencies": { | ||
"js-beautify": "~1.6.8", | ||
"safer-eval": "^1.2.1" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.13.1", | ||
"eslint-config-standard": "^7.0.0-beta.0", | ||
"eslint-plugin-promise": "^3.4.0", | ||
"eslint-plugin-standard": "^2.0.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^3.2.0", | ||
"rimraf": "^2.5.4" | ||
}, | ||
"scripts": { | ||
"test": "mocha test/*.js", | ||
"cover": "istanbul cover _mocha --report lcov --report text -- --reporter dot --check-leaks test/*.js", | ||
"doc": "jsdox -o doc lib/*.js", | ||
"lint": "eslint --quiet '**/*.js'", | ||
"readme": "markedpp --githubid -i README.md -o README.md", | ||
"clean": "rimraf doc coverage node_modules" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/commenthol/serialize-to-js.git" | ||
}, | ||
"keywords": [ | ||
"serialize", | ||
"javascript", | ||
"objects" | ||
], | ||
"author": "commenthol <[email protected]>", | ||
"maintainers": "commenthol <[email protected]>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/commenthol/serialize-to-js/issues" | ||
"scripts": { | ||
"all": "npm run lint && npm test", | ||
"clean": "rimraf doc coverage node_modules *.tgz", | ||
"cover": "nyc -r text -r html npm test", | ||
"doc": "jsdox -o doc lib/*.js", | ||
"lint": "eslint '**/*.js'", | ||
"prepublishOnly": "npm run all", | ||
"readme": "markedpp --githubid -i README.md -o README.md", | ||
"test": "mocha" | ||
}, | ||
"homepage": "https://github.com/commenthol/serialize-to-js", | ||
"eslintConfig": { | ||
"extends": "standard", | ||
"plugins": [ | ||
|
@@ -55,5 +40,24 @@ | |
"rules": { | ||
"key-spacing": 0 | ||
} | ||
} | ||
}, | ||
"dependencies": { | ||
"js-beautify": "~1.7.5", | ||
"safer-eval": "^1.2.3" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^4.18.2", | ||
"eslint-config-standard": "^11.0.0", | ||
"eslint-plugin-import": "^2.9.0", | ||
"eslint-plugin-node": "^6.0.1", | ||
"eslint-plugin-promise": "^3.6.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^5.0.1", | ||
"rimraf": "^2.6.2" | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"maintainers": "commenthol <[email protected]>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters