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

cordova-import-npm

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-import-npm - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

2

package.json
{
"name": "cordova-import-npm",
"version": "1.0.15",
"version": "1.0.16",
"description": "Import files from npm packages into your cordova www directory automatically, upon cordova prepare or cordova build",

@@ -5,0 +5,0 @@ "scripts": {

#!/usr/bin/env node
// const fs = require('fs')
const fs = require('fs')
// const fse = require('fs-extra')
// const path = require('path')
const path = require('path')
const colors = require('colors/safe')
// const xml2js = require('xml2js')
// const parser = new xml2js.Parser()
const xml2js = require('xml2js')
const parser = new xml2js.Parser()
// const isTest = process.argv[2] === '--test'
const isTest = process.argv[2] === '--test'
console.log('Postinstall script running on ' + colors.cyan(process.env.INIT_CWD))
process.exitCode = 0
/*
var configXmlFileName = isTest ? path.join(__dirname, '..', 'test', 'config.xml') : 'config.xml'
const configXmlFileName = isTest
? path.join(__dirname, '..', 'test', 'config.xml')
: path.join(process.env.INIT_CWD, 'config.xml')
console.log(`Reading file ${colors.cyan(configXmlFileName)}`)
var rawdata = fs.readFileSync(configXmlFileName, 'utf8')
const rawdata = fs.readFileSync(configXmlFileName, 'utf8')
parser.parseString(rawdata, function (err, result) {

@@ -34,2 +35,1 @@ if (err) {

})
*/
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