@fastly/compute-js-static-publish 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -224,8 +224,8 @@ export function initApp(commandLineValues) {
224
224
  if (packageJson != null) {
225
225
  // First try current project's package.json
226
226
  computeJsStaticPublisherVersion =
227
- packageJson.dependencies["@fastly/compute-js-static-publish"] ??
228
- packageJson.devDependencies["@fastly/compute-js-static-publish"];
227
+ packageJson.dependencies?.["@fastly/compute-js-static-publish"] ??
228
+ packageJson.devDependencies?.["@fastly/compute-js-static-publish"];
229
229
  // This may be a file url if during development
230
230
  if (computeJsStaticPublisherVersion != null) {
231
231
  if (computeJsStaticPublisherVersion.startsWith('file:')) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fastly/compute-js-static-publish",
3
3
  "type": "module",
4
- "version": "4.1.0",
4
+ "version": "4.2.0",
5
5
  "description": "Static Publisher for Compute@Edge JavaScript",
6
6
  "main": "./build/index.js",
7
7
  "types": "./build/index.d.ts",