@atlaspack/runtime-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/runtime-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
@@ -75,9 +75,7 @@ var _default = exports.default = new (_plugin().Runtime)({
75
75
  const entry = manifest === null || manifest === void 0 ? void 0 : manifest.getMainEntry();
76
76
  const insertDep = entry === null || entry === void 0 ? void 0 : entry.meta.webextBGInsert;
77
77
  if (!manifest || !entry || insertDep == null) return;
78
- const insertBundle = bundleGraph.getReferencedBundle((0, _nullthrows().default)(entry === null || entry === void 0 ? void 0 : entry.getDependencies()
79
- // @ts-expect-error TS2304
80
- .find(dep => dep.id === insertDep)), (0, _nullthrows().default)(manifest));
78
+ const insertBundle = bundleGraph.getReferencedBundle((0, _nullthrows().default)(entry === null || entry === void 0 ? void 0 : entry.getDependencies().find(dep => dep.id === insertDep)), (0, _nullthrows().default)(manifest));
81
79
  let firstInsertableBundle;
82
80
  bundleGraph.traverseBundles((b, _, actions) => {
83
81
  if (b.type == 'js') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/runtime-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"
@@ -16,8 +16,9 @@
16
16
  "node": ">= 16.0.0"
17
17
  },
18
18
  "dependencies": {
19
- "@atlaspack/plugin": "2.14.27-inline-requires-take-2-850fb4568.0",
20
- "@atlaspack/utils": "2.18.4-inline-requires-take-2-850fb4568.0",
19
+ "@atlaspack/plugin": "2.14.28-dev-optimised-prelude-6fa233c65.0",
20
+ "@atlaspack/types": "2.15.18-dev-optimised-prelude-6fa233c65.0",
21
+ "@atlaspack/utils": "2.18.5-dev-optimised-prelude-6fa233c65.0",
21
22
  "nullthrows": "^1.1.1"
22
23
  },
23
24
  "type": "commonjs",
@@ -25,5 +26,5 @@
25
26
  "check-ts": "tsc --emitDeclarationOnly --rootDir src",
26
27
  "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
27
28
  },
28
- "gitHead": "850fb4568e775c8c938e92c1ec0b99d9724ae2c3"
29
+ "gitHead": "6fa233c656e8abea0878044e1fc0dc2023077a53"
29
30
  }
@@ -1,5 +1,6 @@
1
1
  import {Runtime} from '@atlaspack/plugin';
2
2
  import {replaceURLReferences} from '@atlaspack/utils';
3
+ import type {Dependency} from '@atlaspack/types';
3
4
  import nullthrows from 'nullthrows';
4
5
  import fs from 'fs';
5
6
  import path from 'path';
@@ -40,7 +41,6 @@ export default new Runtime({
40
41
  nullthrows(
41
42
  entry
42
43
  ?.getDependencies()
43
- // @ts-expect-error TS2304
44
44
  .find((dep: Dependency) => dep.id === insertDep),
45
45
  ),
46
46
  nullthrows(manifest),