
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
atom-patch
Advanced tools
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.
# 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.
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.
FAQs
A data structure to efficiently represent the results of applying patches.
The npm package atom-patch receives a total of 175 weekly downloads. As such, atom-patch popularity was classified as not popular.
We found that atom-patch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.