@scandipwa/scandipwa-dev-utils
Advanced tools
Comparing version 0.0.10 to 0.0.11
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; |
{ | ||
"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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22720
18
595
7
9
+ Addedmem-fs@^1.2.0
+ Addedmem-fs-editor@^7.0.1
+ Added@types/glob@7.2.0(transitive)
+ Added@types/minimatch@3.0.55.1.2(transitive)
+ Added@types/node@22.10.1(transitive)
+ Addedarray-differ@3.0.0(transitive)
+ Addedarray-union@2.1.0(transitive)
+ Addedarrify@2.0.1(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedclone@2.1.2(transitive)
+ Addedclone-buffer@1.0.0(transitive)
+ Addedclone-stats@1.0.0(transitive)
+ Addedcloneable-readable@1.1.3(transitive)
+ Addedcommondir@1.0.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddir-glob@2.2.2(transitive)
+ Addedejs@3.1.10(transitive)
+ Addedfilelist@1.0.4(transitive)
+ Addedfirst-chunk-stream@2.0.0(transitive)
+ Addedglobby@9.2.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedignore@4.0.6(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedisbinaryfile@4.0.10(transitive)
+ Addedjake@10.9.2(transitive)
+ Addedmem-fs@1.2.0(transitive)
+ Addedmem-fs-editor@7.1.0(transitive)
+ Addedminimatch@5.1.6(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addedmultimatch@4.0.0(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.83.6.2(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedreplace-ext@1.0.1(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedslash@2.0.0(transitive)
+ Addedstring_decoder@1.1.11.3.0(transitive)
+ Addedstrip-bom@2.0.0(transitive)
+ Addedstrip-bom-buf@1.0.0(transitive)
+ Addedstrip-bom-stream@2.0.0(transitive)
+ Addedthrough2@3.0.2(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvinyl@2.2.1(transitive)
+ Addedvinyl-file@3.0.0(transitive)