Socket
Socket
Sign inDemoInstall

af-react-grid

Package Overview
Dependencies
10
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.11 to 1.0.12

10

package.json
{
"name": "af-react-grid",
"version": "1.0.11",
"version": "1.0.12",
"sideEffects": [

@@ -13,3 +13,3 @@ "*.css"

"post-commit": "node scripts/commit.js post",
"pre-push": "yarn test"
"pre-push": "npm run test"
}

@@ -39,5 +39,3 @@ },

"build:examples": "webpack --progress --mode=production --config webpack.config.js",
"build": "npm-run-all -s build:library build:examples",
"git:add:build": "git add dist/ example_dist/",
"git:amend": "git commit --amend -C HEAD --no-verify"
"build": "npm-run-all -s build:library build:examples"
},

@@ -68,3 +66,3 @@ "dependencies": {

"clean-webpack-plugin": "^0.1.19",
"css-loader": "^1.0.0",
"css-loader": "^1.0.1",
"fs": "^0.0.1-security",

@@ -71,0 +69,0 @@ "html-webpack-plugin": "^3.2.0",

24

scripts/commit.js

@@ -7,3 +7,3 @@ const fs = require( "fs" );

const POST_CMDS = [
"yarn build",
"npm run build",
"git add dist/ example_dist/",

@@ -13,23 +13,25 @@ "git commit --amend -C HEAD --no-verify"

const STDIO_ARR = [ 0, 1, 2 ];
switch( process.argv[ 2 ] ){
case "pre":
execSync( "yarn test", { stdio: [ 0, 1, 2 ] } );
execSync( "yarn test", { stdio: STDIO_ARR } );
fs.closeSync( fs.openSync( EMPTY_FILE_NAME, "w" ) );
break;
case "post":
if( fs.existsSync( EMPTY_FILE_NAME ) ){
fs.unlinkSync( EMPTY_FILE_NAME );
POST_CMDS.forEach( cmd => {
try{
console.log( `Running: ${cmd}` );
execSync( cmd, { stdio: [ 0, 1, 2 ] } );
}
catch( e ){
console.error( e )
}
})
console.log( `Running: ${cmd}` );
execSync( cmd, { stdio: STDIO_ARR } );
});
}
break;
default:
throw new Error( "Wrong commit.js usage" );
}
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