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

scandit-cordova-datacapture-core

Package Overview
Dependencies
Maintainers
2
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scandit-cordova-datacapture-core - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1

2

package.json
{
"name": "scandit-cordova-datacapture-core",
"version": "6.2.0",
"version": "6.2.1",
"description": "Scandit Data Capture SDK for Cordova",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

const fs = require('fs')
const rmDirRecursive = (dirPath) => {
try {
const files = fs.readdirSync(dirPath)
if (files.length > 0) {
for (var i = 0; i < files.length; i++) {
const filePath = dirPath + '/' + files[i]
if (fs.statSync(filePath).isFile()) {
fs.unlinkSync(filePath)
} else {
rmDirRecursive(filePath)
}
if (!fs.existsSync(dirPath)) {
console.log(`${dirPath} does not exist, no need to remove it`);
return;
}
const files = fs.readdirSync(dirPath)
if (files.length > 0) {
for (var i = 0; i < files.length; i++) {
const filePath = dirPath + '/' + files[i]
if (fs.statSync(filePath).isFile()) {
fs.unlinkSync(filePath)
} else {
rmDirRecursive(filePath)
}
}
fs.rmdirSync(dirPath)
} catch (e) {
console.log(`${dirPath} does not exist`)
}
fs.rmdirSync(dirPath)
}
module.exports = rmDirRecursive

@@ -37,2 +37,3 @@ var xcode = require('xcode');

if (err) {
console.log('Something went wrong while adding script to strip frameworks.');
reject(err);

@@ -43,2 +44,3 @@ }

fs.writeFileSync(projectPath, myProj.writeSync());
console.log('Script to strip frameworks added.');
resolve();

@@ -45,0 +47,0 @@ })

Sorry, the diff of this file is not supported yet

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