@atlaspack/core 2.12.1-canary.3626 → 2.12.1-canary.3628

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.
@@ -41,6 +41,7 @@ var _Target = _interopRequireDefault(require("./Target"));
41
41
  var _types = require("../types");
42
42
  var _projectPath = require("../projectPath");
43
43
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
44
+ const inspect = Symbol.for('nodejs.util.inspect.custom');
44
45
  const internalBundleToBundle = new (_utils().DefaultWeakMap)(() => new (_utils().DefaultWeakMap)(() => new WeakMap()));
45
46
  const internalBundleToNamedBundle = new (_utils().DefaultWeakMap)(() => new (_utils().DefaultWeakMap)(() => new WeakMap()));
46
47
  const internalBundleToPackagedBundle = new (_utils().DefaultWeakMap)(() => new (_utils().DefaultWeakMap)(() => new WeakMap()));
@@ -64,6 +65,10 @@ class Bundle {
64
65
  #bundleGraph /*: BundleGraph */;
65
66
  #options /*: AtlaspackOptions */;
66
67
 
68
+ // $FlowFixMe
69
+ [inspect]() {
70
+ return `Bundle(${this.#bundle.id})`;
71
+ }
67
72
  constructor(sentinel, bundle, bundleGraph, options) {
68
73
  if (sentinel !== _private) {
69
74
  throw new Error('Unexpected public usage');
@@ -19,6 +19,7 @@ const _bundleGroupToInternalBundleGroup = new WeakMap();
19
19
  function bundleGroupToInternalBundleGroup(target) {
20
20
  return (0, _nullthrows().default)(_bundleGroupToInternalBundleGroup.get(target));
21
21
  }
22
+ const inspect = Symbol.for('nodejs.util.inspect.custom');
22
23
  class BundleGroup {
23
24
  #bundleGroup /*: InternalBundleGroup */;
24
25
  #options /*: AtlaspackOptions */;
@@ -40,5 +41,10 @@ class BundleGroup {
40
41
  get entryAssetId() {
41
42
  return this.#bundleGroup.entryAssetId;
42
43
  }
44
+
45
+ // $FlowFixMe
46
+ [inspect]() {
47
+ return `BundleGroup(${this.entryAssetId})`;
48
+ }
43
49
  }
44
50
  exports.default = BundleGroup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.12.1-canary.3626+da1500b0a",
3
+ "version": "2.12.1-canary.3628+719a78290",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,21 +20,21 @@
20
20
  "check-ts": "tsc --noEmit index.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/build-cache": "2.12.1-canary.3626+da1500b0a",
24
- "@atlaspack/cache": "2.12.1-canary.3626+da1500b0a",
25
- "@atlaspack/diagnostic": "2.12.1-canary.3626+da1500b0a",
26
- "@atlaspack/events": "2.12.1-canary.3626+da1500b0a",
27
- "@atlaspack/feature-flags": "2.12.1-canary.3626+da1500b0a",
28
- "@atlaspack/fs": "2.12.1-canary.3626+da1500b0a",
29
- "@atlaspack/graph": "3.2.1-canary.3626+da1500b0a",
30
- "@atlaspack/logger": "2.12.1-canary.3626+da1500b0a",
31
- "@atlaspack/package-manager": "2.12.1-canary.3626+da1500b0a",
32
- "@atlaspack/plugin": "2.12.1-canary.3626+da1500b0a",
33
- "@atlaspack/profiler": "2.12.1-canary.3626+da1500b0a",
34
- "@atlaspack/rust": "2.12.1-canary.3626+da1500b0a",
35
- "@atlaspack/types": "2.12.1-canary.3626+da1500b0a",
36
- "@atlaspack/utils": "2.12.1-canary.3626+da1500b0a",
37
- "@atlaspack/workers": "2.12.1-canary.3626+da1500b0a",
23
+ "@atlaspack/build-cache": "2.12.1-canary.3628+719a78290",
24
+ "@atlaspack/cache": "2.12.1-canary.3628+719a78290",
25
+ "@atlaspack/diagnostic": "2.12.1-canary.3628+719a78290",
26
+ "@atlaspack/events": "2.12.1-canary.3628+719a78290",
27
+ "@atlaspack/feature-flags": "2.12.1-canary.3628+719a78290",
28
+ "@atlaspack/fs": "2.12.1-canary.3628+719a78290",
29
+ "@atlaspack/graph": "3.2.1-canary.3628+719a78290",
30
+ "@atlaspack/logger": "2.12.1-canary.3628+719a78290",
31
+ "@atlaspack/package-manager": "2.12.1-canary.3628+719a78290",
32
+ "@atlaspack/plugin": "2.12.1-canary.3628+719a78290",
33
+ "@atlaspack/profiler": "2.12.1-canary.3628+719a78290",
34
+ "@atlaspack/rust": "2.12.1-canary.3628+719a78290",
35
+ "@atlaspack/types": "2.12.1-canary.3628+719a78290",
36
+ "@atlaspack/utils": "2.12.1-canary.3628+719a78290",
37
+ "@atlaspack/workers": "2.12.1-canary.3628+719a78290",
38
38
  "@mischnic/json-sourcemap": "^0.1.0",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "base-x": "^3.0.8",
@@ -66,5 +66,5 @@
66
66
  "browser": {
67
67
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
68
68
  },
69
- "gitHead": "da1500b0afb03ecb698c26d71ee0f75a644312aa"
69
+ "gitHead": "719a7829084ea6e2cdabba030f913b0801dde852"
70
70
  }
@@ -35,6 +35,8 @@ import Target from './Target';
35
35
  import {BundleBehaviorNames} from '../types';
36
36
  import {fromProjectPath} from '../projectPath';
37
37
 
38
+ const inspect = Symbol.for('nodejs.util.inspect.custom');
39
+
38
40
  const internalBundleToBundle: DefaultWeakMap<
39
41
  AtlaspackOptions,
40
42
  DefaultWeakMap<BundleGraph, WeakMap<InternalBundle, Bundle>>,
@@ -69,6 +71,11 @@ export class Bundle implements IBundle {
69
71
  #bundleGraph /*: BundleGraph */;
70
72
  #options /*: AtlaspackOptions */;
71
73
 
74
+ // $FlowFixMe
75
+ [inspect]() {
76
+ return `Bundle(${this.#bundle.id})`;
77
+ }
78
+
72
79
  constructor(
73
80
  sentinel: mixed,
74
81
  bundle: InternalBundle,
@@ -25,6 +25,8 @@ export function bundleGroupToInternalBundleGroup(
25
25
  return nullthrows(_bundleGroupToInternalBundleGroup.get(target));
26
26
  }
27
27
 
28
+ const inspect = Symbol.for('nodejs.util.inspect.custom');
29
+
28
30
  export default class BundleGroup implements IBundleGroup {
29
31
  #bundleGroup /*: InternalBundleGroup */;
30
32
  #options /*: AtlaspackOptions */;
@@ -52,4 +54,9 @@ export default class BundleGroup implements IBundleGroup {
52
54
  get entryAssetId(): string {
53
55
  return this.#bundleGroup.entryAssetId;
54
56
  }
57
+
58
+ // $FlowFixMe
59
+ [inspect]() {
60
+ return `BundleGroup(${this.entryAssetId})`;
61
+ }
55
62
  }