Compare commits

..

No commits in common. "fa337440934c691dd11034570e225ba8ba706625" and "76ef8f869e4a00cb2258ce5e62a83c80fd6e36eb" have entirely different histories.

9 changed files with 21 additions and 82 deletions

View File

@ -1,5 +0,0 @@
[*]
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2

4
.gitignore vendored
View File

@ -41,7 +41,3 @@ $RECYCLE.BIN/
Network Trash Folder Network Trash Folder
Temporary Items Temporary Items
.apdisk .apdisk
# mine
coverage
node_modules

View File

@ -1,4 +1,5 @@
language: node_js language: node_js
node_js: node_js:
- 10
- 12 - 12
- 14 - 14

View File

@ -1,9 +0,0 @@
# CHANGELOG
## 2.x.x
Support for Node.js 0.10, 0.12, 4, 6, 8 and 10 is dropped.
## 1.x.x
Initial release.

6
index.js Normal file
View File

@ -0,0 +1,6 @@
"use strict";
module.exports = {
parse: function() { return null; },
stringify: function() { return "null"; }
};

View File

@ -1,17 +0,0 @@
module.exports = {
verbose: true,
bail: false,
collectCoverage: true,
collectCoverageFrom: [
'src/*.js',
'!src/*.spec.js'
],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100
}
}
}

View File

@ -1,28 +1,16 @@
{ {
"name": "fastjson", "name": "fastjson",
"version": "2.0.1", "version": "1.0.2",
"description": "A high-performance, standards-compliant JSON serialiser/deserialiser for JavaScript.", "description": "A high-performance, standards-compliant JSON serialiser/deserialiser for JavaScript.",
"homepage": "https://github.com/qntm/fastjson", "homepage": "https://github.com/qntm/fastjson",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/qntm/fastjson.git" "url": "git://github.com/qntm/fastjson.git"
}, },
"main": "src", "main": "index.js",
"keywords": [ "keywords": [
"json" "json"
], ],
"author": "qntm", "author": "qntm",
"license": "MIT", "license": "MIT"
"files": [
"src"
],
"scripts": {
"postpublish": "npm version patch && git push",
"pretest": "npx standard",
"test": "npx jest"
},
"devDependencies": {
"jest": "^26.6.3",
"standard": "^16.0.3"
}
} }

View File

@ -1,4 +0,0 @@
module.exports = {
parse: () => null,
stringify: () => 'null'
}

View File

@ -1,17 +0,0 @@
/* eslint-env jest */
const fastjson = require('.')
describe('fastjson', () => {
describe('parse', () => {
it('works', () => {
expect(fastjson.parse('abdsfsal{}')).toBeNull()
})
})
describe('stringify', () => {
it('works', () => {
expect(fastjson.stringify('lm995')).toBe('null')
})
})
})