File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 33 "version" : " 23.0.11" ,
44 "description" : " Netlify config module" ,
55 "type" : " module" ,
6- "exports" : {
7- "." : " ./lib/index.js"
8- },
6+ "exports" : " ./lib/index.js" ,
97 "main" : " ./lib/index.js" ,
108 "types" : " ./lib/index.d.ts" ,
119 "bin" : {
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { EXTENSION_API_BASE_URL } from '../../integrations.js'
22import { ModeOption } from '../../types/options.js'
33import { ROOT_PACKAGE_JSON } from '../json.js'
44
5- const configVersion = ROOT_PACKAGE_JSON . version
65export type InstallExtensionResult =
76 | {
87 slug : string
@@ -29,7 +28,7 @@ export const installExtension = async ({
2928 hostSiteUrl : string
3029 extensionInstallationSource : ModeOption
3130} ) : Promise < InstallExtensionResult > => {
32- const userAgent = `Netlify Config (mode:${ extensionInstallationSource } ) / ${ configVersion } `
31+ const userAgent = `Netlify Config (mode:${ extensionInstallationSource } ) / ${ ROOT_PACKAGE_JSON . version } `
3332 const extensionOnInstallUrl = new URL ( '/.netlify/functions/handler/on-install' , hostSiteUrl )
3433 const installedResponse = await fetch ( extensionOnInstallUrl , {
3534 method : 'POST' ,
You can’t perform that action at this time.
0 commit comments