@polkadot/rpc-core 7.1.2-1 → 7.1.2-5

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.
package/bundle.cjs CHANGED
@@ -43,7 +43,7 @@ Object.keys(_index).forEach(function (key) {
43
43
 
44
44
  var _packageInfo = require("./packageInfo.cjs");
45
45
 
46
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
46
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
47
47
  // SPDX-License-Identifier: Apache-2.0
48
48
  const l = (0, _util.logger)('rpc-core');
49
49
  const EMPTY_META = {
package/bundle.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
2
2
  import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
3
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
3
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  import { Observable, publishReplay, refCount } from 'rxjs';
6
6
  import { rpcDefinitions } from '@polkadot/types';
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ declare const __dirname: string | undefined;
5
+
6
+ export default __dirname;
package/cjs/dirname.js ADDED
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ module.exports = typeof __dirname === 'string'
5
+ ? __dirname.replace('/cjs', '')
6
+ : undefined;
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _packageInfo = require("@polkadot/rpc-provider/packageInfo");
9
+
10
+ var _packageInfo2 = require("@polkadot/types/packageInfo");
11
+
12
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
13
+ // SPDX-License-Identifier: Apache-2.0
14
+ var _default = [_packageInfo.packageInfo, _packageInfo2.packageInfo];
15
+ exports.default = _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ name: string;
3
+ version: string;
4
+ }[];
5
+ export default _default;
package/detectOther.js ADDED
@@ -0,0 +1,5 @@
1
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo';
4
+ import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
5
+ export default [providerInfo, typesInfo];
package/detectPackage.cjs CHANGED
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  var _packageInfo = require("@polkadot/rpc-provider/packageInfo");
4
6
 
5
7
  var _packageInfo2 = require("@polkadot/types/packageInfo");
6
8
 
7
9
  var _util = require("@polkadot/util");
8
10
 
11
+ var _dirname2 = _interopRequireDefault(require("./cjs/dirname"));
12
+
9
13
  var _packageInfo3 = require("./packageInfo.cjs");
10
14
 
11
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
15
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
12
16
  // SPDX-License-Identifier: Apache-2.0
13
- (0, _util.detectPackage)(_packageInfo3.packageInfo, typeof __dirname !== 'undefined' && __dirname, [_packageInfo.packageInfo, _packageInfo2.packageInfo]);
17
+ (0, _util.detectPackage)(_packageInfo3.packageInfo, typeof _dirname2.default !== 'undefined' && _dirname2.default, [_packageInfo.packageInfo, _packageInfo2.packageInfo]);
package/detectPackage.js CHANGED
@@ -1,7 +1,8 @@
1
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
1
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo';
4
4
  import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
5
5
  import { detectPackage } from '@polkadot/util';
6
+ import __dirname from "./cjs/dirname.js";
6
7
  import { packageInfo } from "./packageInfo.js";
7
8
  detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [providerInfo, typesInfo]);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
1
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import "./detectPackage.js";
4
4
  export * from "./bundle.js";
package/package.json CHANGED
@@ -20,19 +20,19 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.1.2-1",
23
+ "version": "7.1.2-5",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.16.5",
27
- "@polkadot/rpc-augment": "7.1.2-1",
28
- "@polkadot/rpc-provider": "7.1.2-1",
29
- "@polkadot/types": "7.1.2-1",
26
+ "@babel/runtime": "^7.16.7",
27
+ "@polkadot/rpc-augment": "7.1.2-5",
28
+ "@polkadot/rpc-provider": "7.1.2-5",
29
+ "@polkadot/types": "7.1.2-5",
30
30
  "@polkadot/util": "^8.2.2",
31
31
  "rxjs": "^7.5.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@polkadot/keyring": "^8.2.2",
35
- "@polkadot/rpc-augment": "7.1.2-1"
35
+ "@polkadot/rpc-augment": "7.1.2-5"
36
36
  },
37
37
  "exports": {
38
38
  ".": {
@@ -45,6 +45,16 @@
45
45
  "require": "./bundle.cjs",
46
46
  "default": "./bundle.js"
47
47
  },
48
+ "./cjs/dirname": {
49
+ "types": "./cjs/dirname.d.ts",
50
+ "default": "./cjs/dirname.js"
51
+ },
52
+ "./cjs/package.json": "./cjs/package.json",
53
+ "./detectOther": {
54
+ "types": "./detectOther.d.ts",
55
+ "require": "./detectOther.cjs",
56
+ "default": "./detectOther.js"
57
+ },
48
58
  "./detectPackage": {
49
59
  "types": "./detectPackage.d.ts",
50
60
  "require": "./detectPackage.cjs",
package/packageInfo.cjs CHANGED
@@ -9,6 +9,6 @@ exports.packageInfo = void 0;
9
9
  // Auto-generated by @polkadot/dev, do not edit
10
10
  const packageInfo = {
11
11
  name: '@polkadot/rpc-core',
12
- version: '7.1.2-1'
12
+ version: '7.1.2-5'
13
13
  };
14
14
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -3,5 +3,5 @@
3
3
  // Auto-generated by @polkadot/dev, do not edit
4
4
  export const packageInfo = {
5
5
  name: '@polkadot/rpc-core',
6
- version: '7.1.2-1'
6
+ version: '7.1.2-5'
7
7
  };
package/types/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
1
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // augmented, do an augmentation export
4
4
  export * from '@polkadot/rpc-core/types/jsonrpc'; // normal exports
package/util/drr.cjs CHANGED
@@ -11,7 +11,7 @@ var _util = require("@polkadot/util");
11
11
 
12
12
  var _refCountDelay = require("./refCountDelay.cjs");
13
13
 
14
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
14
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
15
15
  // SPDX-License-Identifier: Apache-2.0
16
16
  const l = (0, _util.logger)('drr');
17
17
 
package/util/drr.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
1
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { catchError, distinctUntilChanged, publishReplay, refCount, tap } from 'rxjs';
4
4
  import { logger, stringify } from '@polkadot/util';
package/util/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
1
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export * from "./drr.js";
4
4
  export * from "./memo.js";
package/util/memo.cjs CHANGED
@@ -11,7 +11,7 @@ var _util = require("@polkadot/util");
11
11
 
12
12
  var _drr = require("./drr.cjs");
13
13
 
14
- // Copyright 2017-2021 @polkadot/api-derive authors & contributors
14
+ // Copyright 2017-2022 @polkadot/api-derive authors & contributors
15
15
  // SPDX-License-Identifier: Apache-2.0
16
16
  // Wraps a derive, doing 2 things to optimize calls -
17
17
  // 1. creates a memo of the inner fn -> Observable, removing when unsubscribed
package/util/memo.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/api-derive authors & contributors
1
+ // Copyright 2017-2022 @polkadot/api-derive authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { Observable } from 'rxjs';
4
4
  import { memoize } from '@polkadot/util';
@@ -7,7 +7,7 @@ exports.refCountDelay = refCountDelay;
7
7
 
8
8
  var _rxjs = require("rxjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
10
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /** @internal */
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/rpc-core authors & contributors
1
+ // Copyright 2017-2022 @polkadot/rpc-core authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { asapScheduler, Observable, Subscription } from 'rxjs';
4
4
  /** @internal */