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

@netlify/config

Package Overview
Dependencies
Maintainers
23
Versions
438
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/config - npm Package Compare versions

Comparing version 20.15.1 to 20.15.2

3

lib/api/site_info.d.ts

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

testOpts?: TestOptions;
siteFeatureFlagPrefix: string;
};

@@ -23,3 +24,3 @@ /**

*/
export declare const getSiteInfo: ({ api, siteId, accountId, mode, context, offline, testOpts, featureFlags, }: GetSiteInfoOpts) => Promise<{
export declare const getSiteInfo: ({ api, siteId, accountId, mode, context, offline, testOpts, featureFlags, siteFeatureFlagPrefix, }: GetSiteInfoOpts) => Promise<{
siteInfo: any;

@@ -26,0 +27,0 @@ accounts: any;

@@ -14,3 +14,3 @@ import fetch from 'node-fetch';

*/
export const getSiteInfo = async function ({ api, siteId, accountId, mode, context, offline = false, testOpts = {}, featureFlags = {}, }) {
export const getSiteInfo = async function ({ api, siteId, accountId, mode, context, offline = false, testOpts = {}, featureFlags = {}, siteFeatureFlagPrefix, }) {
const { env: testEnv = false } = testOpts;

@@ -27,3 +27,3 @@ const useV2Endpoint = !!accountId && featureFlags.cli_integration_installations_meta;

const promises = [
getSite(api, siteId),
getSite(api, siteId, siteFeatureFlagPrefix),
getAccounts(api),

@@ -46,3 +46,3 @@ getAddons(api, siteId),

const promises = [
getSite(api, siteId),
getSite(api, siteId, siteFeatureFlagPrefix),
getAccounts(api),

@@ -59,3 +59,3 @@ getAddons(api, siteId),

};
const getSite = async function (api, siteId) {
const getSite = async function (api, siteId, siteFeatureFlagPrefix) {
if (siteId === undefined) {

@@ -65,3 +65,3 @@ return {};

try {
const site = await api.getSite({ siteId });
const site = await api.getSite({ siteId, feature_flags: siteFeatureFlagPrefix });
return { ...site, id: siteId };

@@ -68,0 +68,0 @@ }

@@ -27,3 +27,3 @@ import { getApiClient } from './api/client.js';

export const resolveConfig = async function (opts) {
const { cachedConfig, cachedConfigPath, host, scheme, packagePath, pathPrefix, testOpts, token, offline, ...optsA } = addDefaultOpts(opts);
const { cachedConfig, cachedConfigPath, host, scheme, packagePath, pathPrefix, testOpts, token, offline, siteFeatureFlagPrefix, ...optsA } = addDefaultOpts(opts);
// `api` is not JSON-serializable, so we cannot cache it inside `cachedConfig`

@@ -42,2 +42,3 @@ const api = getApiClient({ token, offline, host, scheme, pathPrefix, testOpts });

mode,
siteFeatureFlagPrefix,
offline,

@@ -44,0 +45,0 @@ featureFlags,

{
"name": "@netlify/config",
"version": "20.15.1",
"version": "20.15.2",
"description": "Netlify config module",

@@ -98,3 +98,3 @@ "type": "module",

},
"gitHead": "aa96e910e165bde1a46101bcf73702818d008214"
"gitHead": "e31f6da5d8d9f4dbaf70798a04d429dba72928d9"
}
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