Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/contentstack-audit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"fast-csv": "^4.3.6",
"fs-extra": "^11.3.0",
"lodash": "^4.18.1",
"uuid": "^14.0.0",
"winston": "^3.19.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack-audit/src/audit-base-command.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import chalk from 'chalk';
import * as csv from 'fast-csv';
import { copy } from 'fs-extra';
import { v4 as uuid } from 'uuid';
import isEmpty from 'lodash/isEmpty';
import { join, resolve } from 'path';
import cloneDeep from 'lodash/cloneDeep';
Expand All @@ -13,6 +12,7 @@ import {
log,
configHandler,
createLogContext,
generateUid,
} from '@contentstack/cli-utilities';
import { createWriteStream, existsSync, mkdirSync, readFileSync, writeFileSync, rmSync } from 'fs';
import config from './config';
Expand Down Expand Up @@ -437,7 +437,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
this.flags['copy-path'] ||
this.flags['data-dir'] ||
this.sharedConfig.basePath
).replace(/\/+$/, '')}_backup_${uuid()}`;
).replace(/\/+$/, '')}_backup_${generateUid()}`;

if (!existsSync(backupDirPath)) {
mkdirSync(backupDirPath, { recursive: true });
Expand Down
1 change: 0 additions & 1 deletion packages/contentstack-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"merge": "^2.1.1",
"mkdirp": "^1.0.4",
"promise-limit": "^2.7.0",
"uuid": "^14.0.0",
"winston": "^3.19.0"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions packages/contentstack-import/src/import/modules/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import isEmpty from 'lodash/isEmpty';
import uniq from 'lodash/uniq';
import { existsSync } from 'node:fs';
import includes from 'lodash/includes';
import { v4 as uuid } from 'uuid';
import { resolve as pResolve, join } from 'node:path';
import { FsUtility, log, handleAndLogError } from '@contentstack/cli-utilities';
import { FsUtility, log, handleAndLogError, generateUid } from '@contentstack/cli-utilities';

import config from '../../config';
import { ModuleClassParams } from '../../types';
Expand Down Expand Up @@ -424,7 +423,7 @@ export default class ImportAssets extends BaseClass {
// 2. if there are multiple assets fetched with same query, then check the parent uid against mapper created while importing folders
// 3. Replace matched assets
this.rootFolder = {
uid: uuid(),
uid: generateUid(),
name: `Import-${formatDate()}`,
parent_uid: null,
created_at: null,
Expand Down
6 changes: 0 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading