@pi-r/android 0.7.1 → 0.7.2

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.
@@ -81,7 +81,7 @@ module.exports = async function finalize(instance) {
81
81
  }
82
82
  for (const args of taskArgs) {
83
83
  if (instance.aborted) {
84
- return Promise.reject((0, types_1.createAbortError)());
84
+ return (0, types_1.createAbortError)(true);
85
85
  }
86
86
  const startTime = process.hrtime();
87
87
  const task = args.join(' ');
package/index.js CHANGED
@@ -6,7 +6,7 @@ const Document = require('@e-mc/document');
6
6
  class AndroidDocument extends Document {
7
7
  static async finalize(instance) {
8
8
  if (instance.aborted) {
9
- return Promise.reject((0, types_1.createAbortError)());
9
+ return (0, types_1.createAbortError)(true);
10
10
  }
11
11
  if (instance.extensions.length) {
12
12
  const config = instance.config;
@@ -131,7 +131,7 @@ class AndroidDocument extends Document {
131
131
  }
132
132
  async using(data) {
133
133
  if (this.aborted) {
134
- return Promise.reject((0, types_1.createAbortError)());
134
+ return (0, types_1.createAbortError)(true);
135
135
  }
136
136
  const { host, file } = data;
137
137
  const localUri = file.localUri;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/android",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Android document constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -20,8 +20,8 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/pi-r#readme",
22
22
  "dependencies": {
23
- "@e-mc/document": "^0.9.2",
24
- "@e-mc/types": "^0.9.2",
23
+ "@e-mc/document": "^0.9.4",
24
+ "@e-mc/types": "^0.9.4",
25
25
  "htmlparser2": "^9.1.0",
26
26
  "which": "^2.0.2"
27
27
  }