New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

petard

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

petard - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

include/node/switch_builder_wrapper.h

41

index.js

@@ -17,2 +17,6 @@ // petard, an llvm library

f16: petard.getFloatTy(16),
f32: petard.getFloatTy(32),
f64: petard.getFloatTy(64),
pointerTo: petard.getPointerTy

@@ -81,3 +85,40 @@

// structured switch statement helper
var switchimpl = function Switch(cond) {
var that = this;
var merge = this.splitBlock("after");
var defaultBlock = this.createBlock("default");
defaultBlock.insertAfter();
defaultBlock.br(merge);
defaultBlock.insertBefore();
var sw = this.switch(cond, defaultBlock);
this.useBlock(merge);
return {
defaultCase: defaultBlock,
addCase: function addCase(onVal) {
var caseBlock = that.createBlock("case" + onVal);
caseBlock.insertAfter();
caseBlock.br(merge);
caseBlock.insertBefore();
sw.addCase(onVal, caseBlock);
return caseBlock;
}
};
};
attach("select", switchimpl);
// export everything
module.exports = petard;

4

package.json
{
"name": "petard",
"version": "0.0.3",
"version": "0.0.4",
"description": "a js llvm library",

@@ -8,3 +8,3 @@ "main": "index.js",

"clean": "node-gyp clean",
"build": "LLVM_CONFIG=llvm-config node-gyp configure && node-gyp build",
"build": "node-gyp configure && node-gyp build",
"test": "node_modules/mocha/bin/mocha --reporter spec"

@@ -11,0 +11,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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