cargo-messages 0.0.54 → 0.0.55

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.
Files changed (2) hide show
  1. package/cjs/index.cjs +6 -4
  2. package/package.json +1 -1
package/cjs/index.cjs CHANGED
@@ -27,12 +27,14 @@ function addon() {
27
27
  return addon();
28
28
  }
29
29
 
30
+ /*
30
31
  const {
31
32
  findArtifact,
32
33
  findFileByCrateType,
33
34
  fromFile,
34
35
  fromStdin
35
36
  } = addon();
37
+ */
36
38
 
37
39
  const PRIVATE = {};
38
40
 
@@ -49,7 +51,7 @@ class CargoArtifact {
49
51
  }
50
52
 
51
53
  findFileByCrateType(crateType) {
52
- return findFileByCrateType(this._kernel, crateType);
54
+ return addon().findFileByCrateType(this._kernel, crateType);
53
55
  }
54
56
  }
55
57
 
@@ -59,12 +61,12 @@ class CargoMessages {
59
61
  this._mount = options.mount || null;
60
62
  this._manifestPath = options.manifestPath || null;
61
63
  this._kernel = options.file
62
- ? fromFile(options.file, this._mount, this._manifestPath)
63
- : fromStdin(this._mount, this._manifestPath);
64
+ ? addon().fromFile(options.file, this._mount, this._manifestPath)
65
+ : addon().fromStdin(this._mount, this._manifestPath);
64
66
  }
65
67
 
66
68
  findArtifact(crateName) {
67
- const found = findArtifact(this._kernel, crateName);
69
+ const found = addon().findArtifact(this._kernel, crateName);
68
70
  return found
69
71
  ? new CargoArtifact(PRIVATE, found)
70
72
  : null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cargo-messages",
3
3
  "private": false,
4
- "version": "0.0.54",
4
+ "version": "0.0.55",
5
5
  "description": "A streaming reader for JSON messages emitted from Cargo.",
6
6
  "type": "module",
7
7
  "exports": {