Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

nativescript-hook

Package Overview
Dependencies
2
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

5

index.js

@@ -40,3 +40,6 @@ var fs = require('fs');

var hookPath = path.join(hookDir, hookFileName);
fs.writeFileSync(hookPath, util.format('require("%s/%s");' + os.EOL, pkg.name, hook.script));
var trampoline = util.format('%srequire("%s/%s");', hook.inject ? 'module.exports = ' : '', pkg.name, hook.script);
fs.writeFileSync(hookPath, trampoline + os.EOL);
hookFiles.push(path.relative(pkgdir, hookPath));

@@ -43,0 +46,0 @@ });

2

package.json
{
"name": "nativescript-hook",
"version": "0.1.0",
"version": "0.1.1",
"description": "Helper module for installing hooks into NativeScript projects",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc