You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

atom-patch

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-patch

A data structure to efficiently represent the results of applying patches.

0.2.0
Source
npmnpm
Version published
Weekly downloads
200
-91.5%
Maintainers
7
Weekly downloads
 
Created
Source

atom-patch Build Status

This data structure efficiently represents a transformation from input to output text, and it's useful for aggregating and combining changes that occur at different points in time and space.

Contributing

# clone this repository
git clone https://github.com/atom/atom-patch

cd atom-patch
npm install

Use npm test or npm run tdd to run the test suite.

Recompiling Patch's Flatbuffer Schema

Patch uses flat buffers to represent its serialized state. If you want to make any change to the underlying schema you have to download and compile flatc first:

# 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:

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:

// 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.

Keywords

patch data-structure

FAQs

Package last updated on 07 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts