Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-22.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

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

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