@medusajs/utils
Advanced tools
Comparing version 1.9.1-snapshot-20230616072735 to 1.9.1-snapshot-20230616073744
"use strict"; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -8,11 +17,10 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
var fs_1 = __importDefault(require("fs")); | ||
var glob_1 = __importDefault(require("glob")); | ||
var path_1 = __importDefault(require("path")); | ||
var glob_1 = require("glob"); | ||
function clearProject(directory) { | ||
var files = (0, glob_1.globSync)([ | ||
path_1.default.join(directory, "src", "admin/**/*"), | ||
path_1.default.join(directory, "src", "**/onboarding/"), | ||
path_1.default.join(directory, "src", "types"), | ||
path_1.default.join(directory, "src", "**/*.{ts,tsx,js,jsx}"), | ||
]); | ||
var adminFiles = glob_1.default.sync(path_1.default.join(directory, "src", "admin/**/*")); | ||
var onboardingFiles = glob_1.default.sync(path_1.default.join(directory, "src", "**/onboarding/")); | ||
var typeFiles = glob_1.default.sync(path_1.default.join(directory, "src", "types")); | ||
var srcFiles = glob_1.default.sync(path_1.default.join(directory, "src", "**/*.{ts,tsx,js,jsx}")); | ||
var files = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], adminFiles, true), onboardingFiles, true), typeFiles, true), srcFiles, true); | ||
files.forEach(function (file) { | ||
@@ -19,0 +27,0 @@ return fs_1.default.rmSync(file, { |
{ | ||
"name": "@medusajs/utils", | ||
"version": "1.9.1-snapshot-20230616072735", | ||
"version": "1.9.1-snapshot-20230616073744", | ||
"description": "Medusa utilities functions shared by Medusa core and Modules", | ||
@@ -20,3 +20,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@medusajs/types": "1.8.8-snapshot-20230616072735", | ||
"@medusajs/types": "1.8.8-snapshot-20230616073744", | ||
"@types/express": "^4.17.17", | ||
@@ -31,3 +31,3 @@ "cross-env": "^5.2.1", | ||
"awilix": "^8.0.1", | ||
"glob": "^10.2.7", | ||
"glob": "^7.1.6", | ||
"ulid": "^2.3.0" | ||
@@ -34,0 +34,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
142808
124
2330
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@isaacs/cliui@8.0.2(transitive)
- Removed@pkgjs/parseargs@0.11.0(transitive)
- Removedansi-regex@5.0.16.1.0(transitive)
- Removedansi-styles@4.3.06.2.1(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removedeastasianwidth@0.2.0(transitive)
- Removedemoji-regex@8.0.09.2.2(transitive)
- Removedforeground-child@3.3.0(transitive)
- Removedglob@10.4.5(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedjackspeak@3.4.3(transitive)
- Removedlru-cache@10.4.3(transitive)
- Removedminimatch@9.0.5(transitive)
- Removedminipass@7.1.2(transitive)
- Removedpackage-json-from-dist@1.0.1(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpath-scurry@1.11.1(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@4.1.0(transitive)
- Removedstring-width@4.2.35.1.2(transitive)
- Removedstrip-ansi@6.0.17.1.0(transitive)
- Removedwhich@2.0.2(transitive)
- Removedwrap-ansi@7.0.08.1.0(transitive)
Updatedglob@^7.1.6