You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@netlify/dev-utils

Package Overview
Dependencies
Maintainers
16
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/dev-utils - npm Package Compare versions

Comparing version

to
4.0.0

10

dist/main.d.ts

@@ -54,12 +54,4 @@ import { Context } from '@netlify/types';

declare const getGlobalConfigStore: () => Promise<GlobalConfigStore>;
declare const resetConfigCache: () => void;
type globalConfig_GlobalConfigStore<T extends Record<string, any> = Record<string, any>> = GlobalConfigStore<T>;
declare const globalConfig_GlobalConfigStore: typeof GlobalConfigStore;
declare const globalConfig_resetConfigCache: typeof resetConfigCache;
declare namespace globalConfig {
export { globalConfig_GlobalConfigStore as GlobalConfigStore, getGlobalConfigStore as default, globalConfig_resetConfigCache as resetConfigCache };
}
type Handler = (request: Request) => Promise<Response>;

@@ -207,2 +199,2 @@

export { type DevEvent, type DevEventHandler, EventInspector, Fixture, type Geolocation, HTTPServer, type Handler, LocalState, type Logger, type MemoizeCache, MockFetch, type ProcessRef, createImageServerHandler, createMockLogger, ensureNetlifyIgnore, fromWebResponse, generateImage, getAPIToken, getImageResponseSize, globalConfig, headers, killProcess, memoize, mockLocation, netlifyBanner, netlifyCommand, netlifyCyan, renderFunctionErrorPage, shouldBase64Encode, toMultiValueHeaders, toWebRequest, watchDebounced };
export { type DevEvent, type DevEventHandler, EventInspector, Fixture, type Geolocation, GlobalConfigStore, HTTPServer, type Handler, LocalState, type Logger, type MemoizeCache, MockFetch, type ProcessRef, createImageServerHandler, createMockLogger, ensureNetlifyIgnore, fromWebResponse, generateImage, getAPIToken, getGlobalConfigStore, getImageResponseSize, headers, killProcess, memoize, mockLocation, netlifyBanner, netlifyCommand, netlifyCyan, renderFunctionErrorPage, resetConfigCache, shouldBase64Encode, toMultiValueHeaders, toWebRequest, watchDebounced };

19

dist/main.js

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

var __defProp = Object.defineProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
// src/lib/global-config.ts
var global_config_exports = {};
__export(global_config_exports, {
GlobalConfigStore: () => GlobalConfigStore,
default: () => global_config_default,
resetConfigCache: () => resetConfigCache
});
import fs from "fs/promises";

@@ -96,3 +84,2 @@ import fss from "fs";

};
var global_config_default = getGlobalConfigStore;
var resetConfigCache = () => {

@@ -104,3 +91,3 @@ configStore = void 0;

var getAPIToken = async () => {
const globalConfig = await global_config_default();
const globalConfig = await getGlobalConfigStore();
const userId = globalConfig.get("userId");

@@ -787,2 +774,3 @@ const token = globalConfig.get(`users.${userId}.auth.token`);

Fixture,
GlobalConfigStore,
HTTPServer,

@@ -797,4 +785,4 @@ LocalState,

getAPIToken,
getGlobalConfigStore,
getImageResponseSize,
global_config_exports as globalConfig,
headers,

@@ -808,2 +796,3 @@ killProcess,

renderFunctionErrorPage,
resetConfigCache,
shouldBase64Encode,

@@ -810,0 +799,0 @@ toMultiValueHeaders,

{
"name": "@netlify/dev-utils",
"version": "3.3.0",
"version": "4.0.0",
"description": "TypeScript utilities for the local emulation of the Netlify environment",

@@ -5,0 +5,0 @@ "type": "module",