Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-hook

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-hook - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc