atom-patch
Advanced tools
Comparing version 0.3.0 to 1.0.0
{ | ||
"name": "atom-patch", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"description": "A data structure to efficiently represent the results of applying patches.", | ||
"main": "dist/patch.js", | ||
"main": "./build/Release/atom_patch", | ||
"scripts": { | ||
"test": "mocha ./test/helpers/setup test/*", | ||
"tdd": "electron-mocha --renderer --interactive --recursive ./test/helpers/setup test/", | ||
"prepublish": "npm run standard && npm run clean && npm run build", | ||
"test-native": "node-gyp rebuild --debug --tests && ./build/Debug/tests", | ||
"test-js": "mocha ./test/helpers/setup test/*.js", | ||
"test": "npm run test-native && npm run test-js", | ||
"prepublish": "npm run standard", | ||
"standard": "standard --recursive src test", | ||
"build": "babel src --out-dir dist", | ||
"clean": "rm -rf dist", | ||
"ci": "npm run standard && npm run test" | ||
"ci": "npm run standard && npm run test", | ||
"ci-windows": "npm run standard && npm run test" | ||
}, | ||
@@ -28,2 +28,5 @@ "repository": { | ||
"homepage": "https://github.com/nathansobo/atom-patch", | ||
"dependencies": { | ||
"nan": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
@@ -33,11 +36,7 @@ "babel": "^5.0.0", | ||
"chai": "^2.0.0", | ||
"electron-mocha": "git://github.com/nathansobo/electron-mocha.git#interactive-option", | ||
"electron-prebuilt": "^0.30.1", | ||
"mocha": "^2.3.4", | ||
"phonetic": "^0.1.0", | ||
"random-seed": "^0.2.0", | ||
"segfault-handler": "^1.0.0", | ||
"standard": "^4.5.4" | ||
}, | ||
"dependencies": { | ||
"random-seed": "^0.2.0" | ||
}, | ||
"standard": { | ||
@@ -44,0 +43,0 @@ "parser": "babel-eslint", |
@@ -15,34 +15,2 @@ # atom-patch [![Build Status](https://travis-ci.org/atom/atom-patch.svg?branch=master)](https://travis-ci.org/atom/atom-patch) | ||
Use `npm test` or `npm run tdd` to run the test suite. | ||
### Recompiling Patch's Flatbuffer Schema | ||
`Patch` uses [flat buffers](https://google.github.io/flatbuffers/) to represent its serialized state. If you want to make any change to the underlying schema you have to download and compile `flatc` first: | ||
```bash | ||
# clone flatbuffers repository and checkout the version tested with this library | ||
git clone https://github.com/google/flatbuffers | ||
git checkout 959866b | ||
# compile flatbuffers | ||
pushd flatbuffers/build/XCode/ | ||
xcodebuild | ||
popd | ||
``` | ||
This will create a `flatc` executable in flatbuffers top level directory. You can recompile `src/serialization-schema.fbs` by running: | ||
```bash | ||
cd atom-patch | ||
../flatbuffers/flatc -o src --js serialization-schema.fbs | ||
``` | ||
After you do that, please make sure to to change the generated file's last line to: | ||
```diff | ||
// Exports for Node.js and RequireJS | ||
- this.Serialization = Serialization; | ||
+ module.exports = Serialization; | ||
``` | ||
Please, note that we have included a patched version of the flatbuffers javascript library under vendor/flatbuffers.js because the original one has the same problem. | ||
Use `npm test` to run the test suite. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2736601
7
27
0
1
1139
16
1
+ Addednan@^2.4.0
+ Addednan@2.22.0(transitive)
- Removedrandom-seed@^0.2.0
- Removedrandom-seed@0.2.0(transitive)