@atlaspack/transformer-webextension 2.14.27-inline-requires-take-2-850fb4568.0 → 2.14.28-dev-optimised-prelude-6fa233c65.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaspack/transformer-webextension
2
2
 
3
+ ## 2.14.27
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/utils@2.18.4
9
+ - @atlaspack/plugin@2.14.27
10
+
3
11
  ## 2.14.26
4
12
 
5
13
  ### Patch Changes
@@ -70,7 +70,6 @@ async function collectDependencies(asset, program, ptrs, hmrOptions) {
70
70
  codeFrames: [{
71
71
  filePath,
72
72
  codeHighlights: [{
73
- // @ts-expect-error TS2345
74
73
  ...(0, _diagnostic().getJSONHighlightLocation)(ptrs['/default_locale'], err),
75
74
  message: (0, _diagnostic().md)`Localization ${err == 'value' ? 'file for ' + program.default_locale : 'directory'} does not exist: ${_path().default.relative(assetDir, _path().default.join(locales, program.default_locale))}`
76
75
  }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-webextension",
3
- "version": "2.14.27-inline-requires-take-2-850fb4568.0",
3
+ "version": "2.14.28-dev-optimised-prelude-6fa233c65.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -14,9 +14,9 @@
14
14
  "types": "./lib/types/WebExtensionTransformer.d.ts",
15
15
  "engines": {},
16
16
  "dependencies": {
17
- "@atlaspack/diagnostic": "2.14.4-inline-requires-take-2-850fb4568.0",
18
- "@atlaspack/plugin": "2.14.27-inline-requires-take-2-850fb4568.0",
19
- "@atlaspack/utils": "2.18.4-inline-requires-take-2-850fb4568.0",
17
+ "@atlaspack/diagnostic": "2.14.4-dev-optimised-prelude-6fa233c65.0",
18
+ "@atlaspack/plugin": "2.14.28-dev-optimised-prelude-6fa233c65.0",
19
+ "@atlaspack/utils": "2.18.5-dev-optimised-prelude-6fa233c65.0",
20
20
  "@mischnic/json-sourcemap": "^0.1.0",
21
21
  "content-security-policy-parser": "^0.3.0"
22
22
  },
@@ -25,5 +25,5 @@
25
25
  "check-ts": "tsc --emitDeclarationOnly --rootDir src",
26
26
  "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
27
27
  },
28
- "gitHead": "850fb4568e775c8c938e92c1ec0b99d9724ae2c3"
28
+ "gitHead": "6fa233c656e8abea0878044e1fc0dc2023077a53"
29
29
  }
@@ -51,7 +51,7 @@ async function collectDependencies(
51
51
  delete program.$schema;
52
52
  if (program.default_locale) {
53
53
  const locales = path.join(assetDir, '_locales');
54
- let err = !(await fs.exists(locales))
54
+ let err: 'key' | 'value' | null = !(await fs.exists(locales))
55
55
  ? 'key'
56
56
  : !(await fs.exists(
57
57
  path.join(locales, program.default_locale, 'messages.json'),
@@ -69,7 +69,6 @@ async function collectDependencies(
69
69
  filePath,
70
70
  codeHighlights: [
71
71
  {
72
- // @ts-expect-error TS2345
73
72
  ...getJSONHighlightLocation(ptrs['/default_locale'], err),
74
73
  message: md`Localization ${
75
74
  err == 'value'