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

netlify-cli

Package Overview
Dependencies
Maintainers
16
Versions
1207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-cli - npm Package Compare versions

Comparing version 18.0.3 to 18.0.4

3

dist/commands/functions/functions-create.js

@@ -161,3 +161,2 @@ import cp from 'child_process';

}
// @ts-expect-error TS(7034) FIXME: Variable 'templatesForLanguage' implicitly has typ... Remove this comment to see the full error message
let templatesForLanguage;

@@ -183,7 +182,5 @@ try {

// show separators
// @ts-expect-error TS(7005) FIXME: Variable 'templatesForLanguage' implicitly has an ... Remove this comment to see the full error message
return [...templatesForLanguage, ...parsedSpecialCommands];
}
// only show filtered results sorted by score
// @ts-expect-error TS(7005) FIXME: Variable 'templatesForLanguage' implicitly has an ... Remove this comment to see the full error message
const answers = [...filterRegistry(templatesForLanguage, input), ...parsedSpecialCommands].sort((answerA, answerB) => answerB.score - answerA.score);

@@ -190,0 +187,0 @@ return answers;

2

dist/lib/edge-functions/proxy.d.ts

@@ -30,3 +30,3 @@ import type { IncomingMessage } from 'http';

projectDir: string;
repositoryRoot?: string | undefined;
repositoryRoot?: string;
settings: $TSFixMe;

@@ -33,0 +33,0 @@ siteInfo: $TSFixMe;

@@ -5,3 +5,3 @@ import type { RequestHandler } from 'express';

functionsRegistry: FunctionsRegistry;
logWarning?: boolean | undefined;
logWarning?: boolean;
}) => string | undefined;

@@ -8,0 +8,0 @@ export declare const createFormSubmissionHandler: ({ functionsRegistry, siteUrl, }: {

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

export declare const detectNetlifyLambda: ({ packageJson }?: {
packageJson: any;
}) => Promise<false | {
export declare const detectNetlifyLambda: ({ packageJson }?: {}) => Promise<false | {
build: ({ cache }?: {

@@ -5,0 +3,0 @@ cache?: {} | undefined;

@@ -29,4 +29,4 @@ import { type RequestHandler } from 'express';

timeouts: $TSFixMe;
} & Omit<GetFunctionsServerOptions, 'functionsRegistry'>) => Promise<FunctionsRegistry | undefined>;
} & Omit<GetFunctionsServerOptions, "functionsRegistry">) => Promise<FunctionsRegistry | undefined>;
export {};
//# sourceMappingURL=server.d.ts.map

@@ -14,3 +14,3 @@ import { Ora } from 'ora';

spinner: Ora;
text?: string | undefined;
text?: string;
}) => void;

@@ -17,0 +17,0 @@ /**

@@ -14,3 +14,3 @@ import { Settings } from '@netlify/build-info';

*/
export declare const detectFrameworkSettings: (command: BaseCommand, type?: 'dev' | 'build') => Promise<Settings | undefined>;
export declare const detectFrameworkSettings: (command: BaseCommand, type?: "dev" | "build") => Promise<Settings | undefined>;
/**

@@ -17,0 +17,0 @@ * Generates a defaultConfig for @netlify/build based on the settings from the heuristics

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

/// <reference types="node" resolution-mode="require"/>
import chokidar from 'chokidar';

@@ -3,0 +2,0 @@ import { NetlifyAPI } from 'netlify';

@@ -24,3 +24,3 @@ // License for copy-template-dir.

import maxstacheStream from 'maxstache-stream';
import readdirp from 'readdirp';
import { readdirp } from 'readdirp';
const noop = () => undefined;

@@ -27,0 +27,0 @@ // Remove a leading underscore

import BaseCommand from '../../commands/base-command.js';
import { type $TSFixMe } from '../../commands/types.js';
export declare const deploySite: (command: BaseCommand, api: $TSFixMe, siteId: any, dir: any, { assetType, branch, concurrentHash, concurrentUpload, config, deployId, deployTimeout, draft, filter, fnDir, functionsConfig, hashAlgorithm, manifestPath, maxRetry, siteRoot, skipFunctionsCache, statusCb, syncFileLimit, tmpDir, workingDir, }: {
concurrentHash?: number | undefined;
concurrentUpload?: number | undefined;
deployTimeout?: number | undefined;
draft?: boolean | undefined;
maxRetry?: number | undefined;
statusCb?: ((status: {
concurrentHash?: number;
concurrentUpload?: number;
deployTimeout?: number;
draft?: boolean;
maxRetry?: number;
statusCb?: (status: {
type: string;
msg: string;
phase: string;
}) => void) | undefined;
syncFileLimit?: number | undefined;
tmpDir?: string | undefined;
fnDir?: string[] | undefined;
}) => void;
syncFileLimit?: number;
tmpDir?: string;
fnDir?: string[];
workingDir: string;

@@ -18,0 +18,0 @@ }) => Promise<{

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

import hasha from 'hasha';
import { createHash } from 'node:crypto';
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'toml... Remove this comment to see the full error message

@@ -9,3 +9,3 @@ import tomlify from 'tomlify-j0.4';

const configString = serializeToml(config);
const hash = hasha(configString, { algorithm: 'sha1' });
const hash = createHash('sha1').update(configString).digest('hex');
return {

@@ -12,0 +12,0 @@ assetType: 'file',

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

import { createHash } from 'node:crypto';
import { createReadStream } from 'node:fs';
import { pipeline } from 'node:stream/promises';
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'flus... Remove this comment to see the full error message
import flushWriteStream from 'flush-write-stream';
import hasha from 'hasha';
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'para... Remove this comment to see the full error message

@@ -11,2 +13,7 @@ import transform from 'parallel-transform';

import { normalizePath } from './util.js';
const hashFile = async (filePath, algorithm) => {
const hasher = createHash(algorithm);
await pipeline([createReadStream(filePath), hasher]);
return hasher.digest('hex');
};
// a parallel transform stream segment ctor that hashes fileObj's created by folder-walker

@@ -17,3 +24,2 @@ // TODO: use promises instead of callbacks

export const hasherCtor = ({ concurrentHash, hashAlgorithm }) => {
const hashaOpts = { algorithm: hashAlgorithm };
if (!concurrentHash)

@@ -24,3 +30,3 @@ throw new Error('Missing required opts');

try {
const hash = await hasha.fromFile(fileObj.filepath, hashaOpts);
const hash = await hashFile(fileObj.filepath, hashAlgorithm);
// insert hash and asset type to file obj

@@ -27,0 +33,0 @@ return cb(null, { ...fileObj, hash });

@@ -56,3 +56,3 @@ /**

export declare const acquirePort: ({ configuredPort, defaultPort, errorMessage, }: {
configuredPort?: number | undefined;
configuredPort?: number;
defaultPort: number;

@@ -59,0 +59,0 @@ errorMessage: string;

@@ -49,5 +49,5 @@ import { $TSFixMe } from '../../commands/types.js';

export declare const formatEnvelopeData: ({ context, envelopeItems, scope, source, }: {
context?: string | undefined;
context?: string;
envelopeItems: $TSFixMe[];
scope?: string | undefined;
scope?: string;
source: string;

@@ -54,0 +54,0 @@ }) => any;

@@ -18,4 +18,4 @@ import type { NetlifyOptions } from '../commands/types.js';

*/
export declare const getFrameworksAPIConfig: (config: NetlifyOptions['config'], frameworksAPIConfigPath: string) => Promise<import("../commands/types.js").PatchedConfig>;
export declare const getFrameworksAPIConfig: (config: NetlifyOptions["config"], frameworksAPIConfigPath: string) => Promise<import("../commands/types.js").PatchedConfig>;
export {};
//# sourceMappingURL=frameworks-api.d.ts.map

@@ -17,11 +17,11 @@ export declare const INTERNAL_FUNCTIONS_FOLDER = "functions-internal";

base: string;
packagePath?: string | undefined;
packagePath?: string;
}) => Promise<string | null>;
export declare const getFunctionsDistPath: ({ base, packagePath }: {
base: string;
packagePath?: string | undefined;
packagePath?: string;
}) => Promise<string | null>;
export declare const getFunctionsServePath: ({ base, packagePath }: {
base: string;
packagePath?: string | undefined;
packagePath?: string;
}) => string;

@@ -33,5 +33,5 @@ /**

base: string;
ensureExists?: boolean | undefined;
packagePath?: string | undefined;
ensureExists?: boolean;
packagePath?: string;
}) => Promise<string>;
//# sourceMappingURL=functions.d.ts.map

@@ -9,3 +9,3 @@ /**

declare const getRepoData: ({ remoteName, workingDir }: {
remoteName?: string | undefined;
remoteName?: string;
workingDir: string;

@@ -12,0 +12,0 @@ }) => Promise<{

@@ -16,10 +16,10 @@ import BaseCommand from '../commands/base-command.js';

addonsUrls: $TSFixMe;
api?: (import("netlify").NetlifyAPI & Record<string, (...args: any) => Promise<any>>) | undefined;
blobsContext?: BlobsContextWithEdgeAccess | undefined;
api?: NetlifyOptions["api"];
blobsContext?: BlobsContextWithEdgeAccess;
command: BaseCommand;
config: NetlifyOptions['config'];
configPath?: string | undefined;
config: NetlifyOptions["config"];
configPath?: string;
debug: boolean;
disableEdgeFunctions: boolean;
env: NetlifyOptions['cachedConfig']['env'];
env: NetlifyOptions["cachedConfig"]["env"];
inspectSettings: InspectSettings;

@@ -34,7 +34,7 @@ getUpdatedConfig: () => Promise<object>;

projectDir: string;
repositoryRoot?: string | undefined;
repositoryRoot?: string;
state: StateConfig;
functionsRegistry?: FunctionsRegistry | undefined;
functionsRegistry?: FunctionsRegistry;
}) => Promise<string>;
export {};
//# sourceMappingURL=proxy-server.d.ts.map
import { BaseCommand } from '../commands/index.js';
import { $TSFixMe } from '../commands/types.js';
import { ServerSettings } from './types.js';
export declare const getProxyUrl: (settings: Pick<ServerSettings, 'https' | 'port'>) => string;
export declare const getProxyUrl: (settings: Pick<ServerSettings, "https" | "port">) => string;
export declare const startProxy: ({ accountId, addonsUrls, api, blobsContext, command, config, configPath, debug, disableEdgeFunctions, env, functionsRegistry, geoCountry, geolocationMode, getUpdatedConfig, inspectSettings, offline, projectDir, repositoryRoot, settings, siteInfo, state, }: {

@@ -9,3 +9,3 @@ command: BaseCommand;

disableEdgeFunctions: boolean;
} & Record<string, any>) => Promise<string>;
} & Record<string, $TSFixMe>) => Promise<string>;
//# sourceMappingURL=proxy.d.ts.map

@@ -36,3 +36,3 @@ import url from 'url';

}
throw new Error('unsupported host ', repoHost);
throw new Error(`unsupported host: ${repoHost}`);
};

@@ -39,0 +39,0 @@ /**

@@ -1,8 +0,1 @@

/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import BaseCommand from '../commands/base-command.js';

@@ -16,3 +9,3 @@ import { $TSFixMe } from '../commands/types.js';

env: NodeJS.ProcessEnv;
timeline: 'build' | 'dev';
timeline: "build" | "dev";
}) => Promise<{

@@ -19,0 +12,0 @@ configPath?: undefined;

@@ -1,5 +0,1 @@

/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import { Buffer } from 'buffer';

@@ -6,0 +2,0 @@ import { IncomingMessage } from 'http';

{
"name": "netlify-cli",
"description": "Netlify command line tool",
"version": "18.0.3",
"version": "18.0.4",
"author": "Netlify Inc.",

@@ -38,6 +38,6 @@ "type": "module",

"dependencies": {
"@bugsnag/js": "7.25.0",
"@bugsnag/js": "8.2.0",
"@fastify/static": "7.0.4",
"@netlify/blobs": "8.1.0",
"@netlify/build": "29.58.8",
"@netlify/build": "29.58.9",
"@netlify/build-info": "8.0.0",

@@ -50,4 +50,4 @@ "@netlify/config": "20.21.7",

"@netlify/redirect-parser": "14.5.0",
"@netlify/zip-it-and-ship-it": "9.42.4",
"@octokit/rest": "20.1.1",
"@netlify/zip-it-and-ship-it": "9.42.5",
"@octokit/rest": "21.1.0",
"@opentelemetry/api": "1.8.0",

@@ -59,3 +59,3 @@ "ansi-escapes": "7.0.0",

"better-opn": "3.0.2",
"boxen": "7.1.1",
"boxen": "8.0.1",
"chalk": "5.4.1",

@@ -67,7 +67,7 @@ "chokidar": "3.6.0",

"comment-json": "4.2.5",
"configstore": "6.0.0",
"configstore": "7.0.0",
"content-type": "1.0.5",
"cookie": "0.7.2",
"cron-parser": "4.9.0",
"debug": "4.3.7",
"debug": "4.4.0",
"decache": "4.6.2",

@@ -84,3 +84,3 @@ "dot-prop": "9.0.0",

"fastest-levenshtein": "1.0.16",
"fastify": "4.28.1",
"fastify": "4.29.0",
"find-up": "7.0.0",

@@ -91,11 +91,10 @@ "flush-write-stream": "2.0.0",

"fuzzy": "0.1.3",
"get-port": "5.1.1",
"get-port": "7.1.0",
"gh-release-fetch": "4.0.3",
"git-repo-info": "2.1.1",
"gitconfiglocal": "2.1.0",
"hasha": "5.2.2",
"http-proxy": "1.18.1",
"http-proxy-middleware": "2.0.7",
"https-proxy-agent": "7.0.6",
"inquirer": "6.5.2",
"inquirer": "8.0.0",
"inquirer-autocomplete-prompt": "1.4.0",

@@ -113,3 +112,3 @@ "ipx": "2.1.0",

"lodash": "4.17.21",
"log-symbols": "6.0.0",
"log-symbols": "7.0.0",
"log-update": "6.1.0",

@@ -122,3 +121,3 @@ "maxstache": "1.0.7",

"node-fetch": "3.3.2",
"ora": "8.1.1",
"ora": "8.2.0",
"p-filter": "4.1.0",

@@ -132,6 +131,6 @@ "p-map": "7.0.3",

"pump": "3.0.2",
"raw-body": "2.5.2",
"raw-body": "3.0.0",
"read-package-up": "11.0.0",
"readdirp": "3.6.0",
"semver": "7.6.3",
"readdirp": "4.1.1",
"semver": "7.7.1",
"source-map-support": "0.5.21",

@@ -149,8 +148,8 @@ "strip-ansi-control-characters": "2.0.0",

"update-notifier": "7.3.1",
"uuid": "9.0.1",
"uuid": "11.0.5",
"wait-port": "1.1.0",
"write-file-atomic": "5.0.1",
"ws": "8.18.0",
"zod": "3.23.8"
"zod": "3.24.1"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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