@e-mc/compat-v4 0.4.2 → 0.5.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.
Files changed (2) hide show
  1. package/index.js +12 -0
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -98,6 +98,18 @@ try {
98
98
  return this.Request.open(uri, options);
99
99
  };
100
100
  Object.defineProperties(proto, {
101
+ archiving: {
102
+ set(value) {
103
+ const kIncremental = Object.getOwnPropertySymbols(this).find(sym => sym.toString() === 'Symbol(incremental)');
104
+ if (kIncremental) {
105
+ // @ts-ignore
106
+ this[kIncremental] = value ? 'staging' : 'none';
107
+ }
108
+ },
109
+ get() {
110
+ return this.incremental === 'staging';
111
+ }
112
+ },
101
113
  cacheHttpRequest: {
102
114
  set(value) {
103
115
  const cacheToDisk = this.cacheToDisk;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/compat-v4",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "Base class compatibility with squared-functions.",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -22,8 +22,8 @@
22
22
  "license": "BSD 3-Clause",
23
23
  "homepage": "https://github.com/anpham6/e-mc#readme",
24
24
  "dependencies": {
25
- "@e-mc/module": "0.4.2",
26
- "@e-mc/request": "0.4.2",
27
- "@e-mc/types": "0.4.2"
25
+ "@e-mc/module": "0.5.0",
26
+ "@e-mc/request": "0.5.0",
27
+ "@e-mc/types": "0.5.0"
28
28
  }
29
29
  }