New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@datocms/cli-utils

Package Overview
Dependencies
Maintainers
6
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datocms/cli-utils - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

lib/base-command.d.ts
import { Command } from '@oclif/core';
import { FlagInput, ParserOutput } from '@oclif/core/lib/interfaces';
import type { FlagInput, ParserOutput } from '@oclif/core/lib/interfaces';
declare type InferredFlagsType<T> = T extends FlagInput<infer F> ? F & {

@@ -4,0 +4,0 @@ json: boolean | undefined;

@@ -1,2 +0,2 @@

import { Client, ClientConfigOptions, LogLevel } from '@datocms/cma-client-node';
import { type Client, type ClientConfigOptions, LogLevel } from '@datocms/cma-client-node';
import { DatoProfileConfigCommand } from './dato-profile-config-command';

@@ -3,0 +3,0 @@ export declare const logLevelMap: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.readConfig = void 0;
const promises_1 = require("fs/promises");
const promises_1 = require("node:fs/promises");
const lodash_1 = require("lodash");

@@ -6,0 +6,0 @@ function isProfileConfig(thing) {

import { BaseCommand } from './base-command';
import { Config } from './config';
import { type Config } from './config';
export declare abstract class DatoConfigCommand<T extends typeof DatoConfigCommand.flags> extends BaseCommand<T> {

@@ -4,0 +4,0 @@ static flags: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatoConfigCommand = void 0;
const path_1 = require("path");
const promises_1 = require("node:fs/promises");
const node_path_1 = require("node:path");
const core_1 = require("@oclif/core");
const promises_1 = require("fs/promises");
const base_command_1 = require("./base-command");

@@ -12,4 +12,4 @@ const config_1 = require("./config");

await super.init();
this.datoConfigPath = (0, path_1.resolve)(process.cwd(), this.parsedFlags['config-file']);
this.datoConfigRelativePath = (0, path_1.relative)(process.cwd(), this.datoConfigPath);
this.datoConfigPath = (0, node_path_1.resolve)(process.cwd(), this.parsedFlags['config-file']);
this.datoConfigRelativePath = (0, node_path_1.relative)(process.cwd(), this.datoConfigPath);
this.datoConfig = await (0, config_1.readConfig)(this.datoConfigPath);

@@ -16,0 +16,0 @@ }

@@ -1,2 +0,2 @@

import { ProfileConfig } from './config';
import type { ProfileConfig } from './config';
import { DatoConfigCommand } from './dato-config-command';

@@ -3,0 +3,0 @@ export declare abstract class DatoProfileConfigCommand<T extends typeof DatoProfileConfigCommand.flags> extends DatoConfigCommand<T> {

{
"name": "@datocms/cli-utils",
"version": "2.0.0",
"version": "2.0.1",
"description": "Utils for DatoCMS CLI",

@@ -32,3 +32,3 @@ "author": "Stefano Verna <s.verna@datocms.com>",

},
"gitHead": "398d0b05b647753fd0a3754ffaa845ff96660640"
"gitHead": "9582570efd9ffcd8f6c877d6dfee144265d08e3c"
}
import { CliUx, Command } from '@oclif/core';
import { FlagInput, ParserOutput } from '@oclif/core/lib/interfaces';
import type { FlagInput, ParserOutput } from '@oclif/core/lib/interfaces';
import { get } from 'lodash';

@@ -4,0 +4,0 @@

import {
ApiError,
Client,
ClientConfigOptions,
type Client,
type ClientConfigOptions,
LogLevel,

@@ -6,0 +6,0 @@ buildClient,

@@ -1,2 +0,2 @@

import { access, readFile } from 'fs/promises';
import { access, readFile } from 'node:fs/promises';
import { get } from 'lodash';

@@ -3,0 +3,0 @@

@@ -1,6 +0,6 @@

import { relative, resolve } from 'path';
import { writeFile } from 'node:fs/promises';
import { relative, resolve } from 'node:path';
import { Flags } from '@oclif/core';
import { writeFile } from 'fs/promises';
import { BaseCommand } from './base-command';
import { Config, readConfig } from './config';
import { type Config, readConfig } from './config';

@@ -7,0 +7,0 @@ export abstract class DatoConfigCommand<

import { Flags } from '@oclif/core';
import { ProfileConfig } from './config';
import type { ProfileConfig } from './config';
import { DatoConfigCommand } from './dato-config-command';

@@ -4,0 +4,0 @@

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