Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atom-patch

Package Overview
Dependencies
Maintainers
8
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-patch - npm Package Compare versions

Comparing version 0.3.0 to 1.0.0

.clang_complete

27

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc