@cloudpss/ubrpc 0.5.2 → 0.5.6

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/package.json +12 -13
  2. package/src/types/utils.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudpss/ubrpc",
3
- "version": "0.5.2",
3
+ "version": "0.5.6",
4
4
  "author": "CloudPSS",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -16,23 +16,22 @@
16
16
  "types": "./dist/index.d.ts",
17
17
  "default": "./dist/index.js"
18
18
  },
19
- "scripts": {
20
- "start": "yarn clean && tsc --watch",
21
- "build": "yarn clean && tsc",
22
- "prepublishOnly": "yarn build",
23
- "clean": "rimraf dist",
24
- "benchmark": "node ./benchmark",
25
- "test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest"
26
- },
27
19
  "dependencies": {
28
- "@cloudpss/fetch": "~0.5.2",
29
- "@cloudpss/ubjson": "~0.5.2",
30
20
  "rxjs": "^7.8.1",
31
- "uuid": "^9.0.1"
21
+ "uuid": "^9.0.1",
22
+ "@cloudpss/fetch": "~0.5.6",
23
+ "@cloudpss/ubjson": "~0.5.6"
32
24
  },
33
25
  "devDependencies": {
34
26
  "@types/uuid": "^9.0.7",
35
27
  "@types/ws": "^8.5.9",
36
28
  "ws": "^8.14.2"
29
+ },
30
+ "scripts": {
31
+ "start": "pnpm clean && tsc --watch",
32
+ "build": "pnpm clean && tsc",
33
+ "clean": "rimraf dist",
34
+ "benchmark": "node ./benchmark",
35
+ "test": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --experimental-vm-modules\" jest"
37
36
  }
38
- }
37
+ }
@@ -11,10 +11,10 @@ type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B
11
11
  type IsNotificationReturn<R> = IsEqual<R, void> extends true
12
12
  ? true
13
13
  : IsEqual<R, undefined> extends true
14
- ? true
15
- : R extends PromiseLike<void> | void
16
- ? true
17
- : false;
14
+ ? true
15
+ : R extends PromiseLike<void> | void
16
+ ? true
17
+ : false;
18
18
 
19
19
  /** 作为 Observable 输出的方法 */
20
20
  type ObservableReturn = ObservableLike<any> | PromiseLike<ObservableLike<any>>;