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

@nativescript/hook

Package Overview
Dependencies
Maintainers
12
Versions
5
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 1.0.0-alpha.0 to 1.0.0-alpha.1

5

index.js

@@ -23,3 +23,4 @@ module.exports = function (__dirname) {

function generateHookName(pkg, hook) {
return (hook.name || pkg.name) + '.js';
// flatten scoped packages to names
return ((hook.name || pkg.name).replace(/@/ig, '').replace(/\//ig, '-')) + '.js';
}

@@ -65,3 +66,2 @@

function forEachHook(pkgdir, callback) {
console.log('forEachHook pkgdir:', pkgdir);
var pkg = require(path.join(pkgdir, 'package.json'));

@@ -74,3 +74,2 @@ var ns = pkg.nativescript;

var projectDir = findProjectDir(pkgdir);
console.log('forEachHook projectDir:', projectDir);
if (!projectDir) {

@@ -77,0 +76,0 @@ return;

2

package.json
{
"name": "@nativescript/hook",
"version": "1.0.0-alpha.0",
"version": "1.0.0-alpha.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