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

@medusajs/utils

Package Overview
Dependencies
Maintainers
2
Versions
2859
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@medusajs/utils - npm Package Compare versions

Comparing version 1.9.1-snapshot-20230616072735 to 1.9.1-snapshot-20230616073744

dist/common/db-aware-column.d.ts

22

dist/cli/clear-project.js
"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

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