@rc-ex/debug 1.3.0 → 1.3.1
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/lib/esm/index.js +10 -5
- package/lib/esm/index.js.map +1 -1
- package/package.json +4 -5
- /package/lib/{index.cjs → index.js} +0 -0
package/lib/esm/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Utils_js_1 = __importDefault(require("@rc-ex/core/lib/esm/Utils.js"));
|
|
7
|
+
const SdkExtension_js_1 = __importDefault(require("@rc-ex/core/lib/esm/SdkExtension.js"));
|
|
8
|
+
class DebugExtension extends SdkExtension_js_1.default {
|
|
4
9
|
options;
|
|
5
10
|
constructor(options = {}) {
|
|
6
11
|
super();
|
|
@@ -14,11 +19,11 @@ class DebugExtension extends SdkExtension {
|
|
|
14
19
|
return request(method, endpoint, content, queryParams, config);
|
|
15
20
|
}
|
|
16
21
|
const r = await request(method, endpoint, content, queryParams, config);
|
|
17
|
-
this.options.loggingAction(
|
|
22
|
+
this.options.loggingAction(Utils_js_1.default.formatTraffic(r));
|
|
18
23
|
return r;
|
|
19
24
|
};
|
|
20
25
|
}
|
|
21
26
|
async revoke() { }
|
|
22
27
|
}
|
|
23
|
-
|
|
28
|
+
exports.default = DebugExtension;
|
|
24
29
|
//# sourceMappingURL=index.js.map
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAMA,4EAAiD;AACjD,0FAA+D;AAM/D,MAAM,cAAe,SAAQ,yBAAY;IAChC,OAAO,CAAe;IAE7B,YAAmB,UAAwB,EAAE;QAC3C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,CAAC,aAAa,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,EAAe;QAClC,MAAM,OAAO,GAAsB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvD,EAAE,CAAC,OAAO,GAAG,KAAK,EAChB,MAAkB,EAClB,QAAgB,EAChB,OAAY,EACZ,WAAgB,EAChB,MAA0B,EACA,EAAE;YAC5B,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClB,OAAO,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;YACjE,CAAC;YACD,MAAM,CAAC,GAAG,MAAM,OAAO,CACrB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAW,EACX,MAAM,CACP,CAAC;YACF,IAAI,CAAC,OAAO,CAAC,aAAc,CAAC,kBAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;YACpD,OAAO,CAAC,CAAC;QACX,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,MAAM,KAAmB,CAAC;CACxC;AAED,kBAAe,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rc-ex/debug",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Debug extension for ringcentral-extensible project",
|
|
5
5
|
"author": "Tyler Liu <tyler.liu@ringcentral.com>",
|
|
6
6
|
"homepage": "https://github.com/ringcentral/ringcentral-extensible/tree/master/packages/extensions/debug",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"type": "module",
|
|
9
8
|
"types": "./lib/esm/index.d.ts",
|
|
10
|
-
"main": "./lib/index.
|
|
9
|
+
"main": "./lib/index.js",
|
|
11
10
|
"module": "./lib/esm/index.js",
|
|
12
11
|
"repository": {
|
|
13
12
|
"type": "git",
|
|
@@ -20,10 +19,10 @@
|
|
|
20
19
|
"access": "public"
|
|
21
20
|
},
|
|
22
21
|
"devDependencies": {
|
|
23
|
-
"@rc-ex/core": "^1.6.
|
|
22
|
+
"@rc-ex/core": "^1.6.1"
|
|
24
23
|
},
|
|
25
24
|
"scripts": {
|
|
26
25
|
"rename-to-cjs": "find lib -type f -name '*.js' -exec sh -c 'mv \"$0\" \"${0%.js}.cjs\"' {} \\;"
|
|
27
26
|
},
|
|
28
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "f87265ce907e6f36534ae49fadbe3e67f8d14340"
|
|
29
28
|
}
|
|
File without changes
|