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

@scandipwa/scandipwa-dev-utils

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scandipwa/scandipwa-dev-utils - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

create-filesystem.js

12

latest-version.js
const https = require('https');
const spawn = require('cross-spawn');
const getLatestVersion = (packageName) => new Promise((resolve, reject) => {
const getLatestVersionFromRegistry = (packageName) => new Promise((resolve, reject) => {
https

@@ -26,2 +27,11 @@ .get(

const getLatestVersion = async (packageName) => {
try {
return getLatestVersionFromRegistry(packageName);
} catch (e) {
// we expect this to throw, so promise gets rejected
return spawn.sync('npm view create-magento-app version').toString().trim();
}
};
module.exports = getLatestVersion;

9

package.json
{
"name": "@scandipwa/scandipwa-dev-utils",
"description": "Development utilities used by CSA.",
"version": "0.0.10",
"version": "0.0.11",
"files": [

@@ -18,2 +18,5 @@ "composer.js",

"logger.js",
"create-filesystem.js",
"install-deps.js",
"get-context.js",
"/lib"

@@ -24,2 +27,4 @@ ],

"cross-spawn": "^7.0.3",
"mem-fs": "^1.2.0",
"mem-fs-editor": "^7.0.1",
"react-dev-utils": "^10.2.1",

@@ -33,3 +38,3 @@ "semver": "^7.3.2",

},
"gitHead": "a261bd1649abb1878aee60329a86568e35fa422d"
"gitHead": "21f77fa1d6e46400d1a0d9582d63125c7a32c4f5"
}
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