@typespec/ts-http-runtime 1.0.0-alpha.20240613.1 → 1.0.0-alpha.20240618.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/dist/browser/logger/log-browser.d.mts.map +1 -1
- package/dist/browser/logger/log-browser.mjs.map +1 -1
- package/dist/browser/logger/log.common.d.ts +2 -0
- package/dist/browser/logger/log.common.d.ts.map +1 -0
- package/dist/browser/logger/log.common.js +23 -0
- package/dist/browser/logger/log.common.js.map +1 -0
- package/dist/browser/logger/log.d.ts +1 -1
- package/dist/browser/logger/log.js +1 -20
- package/dist/commonjs/logger/log.common.d.ts +2 -0
- package/dist/commonjs/logger/log.common.d.ts.map +1 -0
- package/dist/commonjs/logger/log.common.js +27 -0
- package/dist/commonjs/logger/log.common.js.map +1 -0
- package/dist/esm/logger/log.common.d.ts +2 -0
- package/dist/esm/logger/log.common.d.ts.map +1 -0
- package/dist/esm/logger/log.common.js +23 -0
- package/dist/esm/logger/log.common.js.map +1 -0
- package/dist/react-native/logger/log-react-native.d.mts.map +1 -0
- package/dist/react-native/logger/log-react-native.mjs.map +1 -0
- package/dist/react-native/logger/log.common.d.ts +2 -0
- package/dist/react-native/logger/log.common.d.ts.map +1 -0
- package/dist/react-native/logger/log.common.js +23 -0
- package/dist/react-native/logger/log.common.js.map +1 -0
- package/dist/react-native/logger/log.d.ts +2 -2
- package/dist/react-native/logger/log.js +2 -7
- package/package.json +1 -1
- package/dist/react-native/logger/log.d.ts.map +0 -1
- package/dist/react-native/logger/log.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-browser.d.mts","sourceRoot":"","sources":["../../../src/logger/log-browser.mts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"log-browser.d.mts","sourceRoot":"","sources":["../../../src/logger/log-browser.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-browser.mjs","sourceRoot":"","sources":["../../../src/logger/log-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,
|
|
1
|
+
{"version":3,"file":"log-browser.mjs","sourceRoot":"","sources":["../../../src/logger/log-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { log } from \"./log.common.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.common.d.ts","sourceRoot":"","sources":["../../../src/logger/log.common.ts"],"names":[],"mappings":"AAGA,wBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAexC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
export function log(...args) {
|
|
4
|
+
if (args.length > 0) {
|
|
5
|
+
const firstArg = String(args[0]);
|
|
6
|
+
if (firstArg.includes(":error")) {
|
|
7
|
+
console.error(...args);
|
|
8
|
+
}
|
|
9
|
+
else if (firstArg.includes(":warning")) {
|
|
10
|
+
console.warn(...args);
|
|
11
|
+
}
|
|
12
|
+
else if (firstArg.includes(":info")) {
|
|
13
|
+
console.info(...args);
|
|
14
|
+
}
|
|
15
|
+
else if (firstArg.includes(":verbose")) {
|
|
16
|
+
console.debug(...args);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
console.debug(...args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=log.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.common.js","sourceRoot":"","sources":["../../../src/logger/log.common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,UAAU,GAAG,CAAC,GAAG,IAAW;IAChC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,IAAI,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACtC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport function log(...args: any[]): void {\n if (args.length > 0) {\n const firstArg = String(args[0]);\n if (firstArg.includes(\":error\")) {\n console.error(...args);\n } else if (firstArg.includes(\":warning\")) {\n console.warn(...args);\n } else if (firstArg.includes(\":info\")) {\n console.info(...args);\n } else if (firstArg.includes(\":verbose\")) {\n console.debug(...args);\n } else {\n console.debug(...args);\n }\n }\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { log } from "./log.common.js";
|
|
2
2
|
//# sourceMappingURL=log-browser.d.mts.map
|
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
|
-
export
|
|
4
|
-
if (args.length > 0) {
|
|
5
|
-
const firstArg = String(args[0]);
|
|
6
|
-
if (firstArg.includes(":error")) {
|
|
7
|
-
console.error(...args);
|
|
8
|
-
}
|
|
9
|
-
else if (firstArg.includes(":warning")) {
|
|
10
|
-
console.warn(...args);
|
|
11
|
-
}
|
|
12
|
-
else if (firstArg.includes(":info")) {
|
|
13
|
-
console.info(...args);
|
|
14
|
-
}
|
|
15
|
-
else if (firstArg.includes(":verbose")) {
|
|
16
|
-
console.debug(...args);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
console.debug(...args);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
3
|
+
export { log } from "./log.common.js";
|
|
23
4
|
//# sourceMappingURL=log-browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.common.d.ts","sourceRoot":"","sources":["../../../src/logger/log.common.ts"],"names":[],"mappings":"AAGA,wBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAexC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.log = void 0;
|
|
6
|
+
function log(...args) {
|
|
7
|
+
if (args.length > 0) {
|
|
8
|
+
const firstArg = String(args[0]);
|
|
9
|
+
if (firstArg.includes(":error")) {
|
|
10
|
+
console.error(...args);
|
|
11
|
+
}
|
|
12
|
+
else if (firstArg.includes(":warning")) {
|
|
13
|
+
console.warn(...args);
|
|
14
|
+
}
|
|
15
|
+
else if (firstArg.includes(":info")) {
|
|
16
|
+
console.info(...args);
|
|
17
|
+
}
|
|
18
|
+
else if (firstArg.includes(":verbose")) {
|
|
19
|
+
console.debug(...args);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
console.debug(...args);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.log = log;
|
|
27
|
+
//# sourceMappingURL=log.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.common.js","sourceRoot":"","sources":["../../../src/logger/log.common.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,SAAgB,GAAG,CAAC,GAAG,IAAW;IAChC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,IAAI,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACtC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;AACH,CAAC;AAfD,kBAeC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport function log(...args: any[]): void {\n if (args.length > 0) {\n const firstArg = String(args[0]);\n if (firstArg.includes(\":error\")) {\n console.error(...args);\n } else if (firstArg.includes(\":warning\")) {\n console.warn(...args);\n } else if (firstArg.includes(\":info\")) {\n console.info(...args);\n } else if (firstArg.includes(\":verbose\")) {\n console.debug(...args);\n } else {\n console.debug(...args);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.common.d.ts","sourceRoot":"","sources":["../../../src/logger/log.common.ts"],"names":[],"mappings":"AAGA,wBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAexC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
export function log(...args) {
|
|
4
|
+
if (args.length > 0) {
|
|
5
|
+
const firstArg = String(args[0]);
|
|
6
|
+
if (firstArg.includes(":error")) {
|
|
7
|
+
console.error(...args);
|
|
8
|
+
}
|
|
9
|
+
else if (firstArg.includes(":warning")) {
|
|
10
|
+
console.warn(...args);
|
|
11
|
+
}
|
|
12
|
+
else if (firstArg.includes(":info")) {
|
|
13
|
+
console.info(...args);
|
|
14
|
+
}
|
|
15
|
+
else if (firstArg.includes(":verbose")) {
|
|
16
|
+
console.debug(...args);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
console.debug(...args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=log.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.common.js","sourceRoot":"","sources":["../../../src/logger/log.common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,UAAU,GAAG,CAAC,GAAG,IAAW;IAChC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,IAAI,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACtC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport function log(...args: any[]): void {\n if (args.length > 0) {\n const firstArg = String(args[0]);\n if (firstArg.includes(\":error\")) {\n console.error(...args);\n } else if (firstArg.includes(\":warning\")) {\n console.warn(...args);\n } else if (firstArg.includes(\":info\")) {\n console.info(...args);\n } else if (firstArg.includes(\":verbose\")) {\n console.debug(...args);\n } else {\n console.debug(...args);\n }\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-react-native.d.mts","sourceRoot":"","sources":["../../../src/logger/log-react-native.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-react-native.mjs","sourceRoot":"","sources":["../../../src/logger/log-react-native.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { log } from \"./log.common.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.common.d.ts","sourceRoot":"","sources":["../../../src/logger/log.common.ts"],"names":[],"mappings":"AAGA,wBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAexC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
export function log(...args) {
|
|
4
|
+
if (args.length > 0) {
|
|
5
|
+
const firstArg = String(args[0]);
|
|
6
|
+
if (firstArg.includes(":error")) {
|
|
7
|
+
console.error(...args);
|
|
8
|
+
}
|
|
9
|
+
else if (firstArg.includes(":warning")) {
|
|
10
|
+
console.warn(...args);
|
|
11
|
+
}
|
|
12
|
+
else if (firstArg.includes(":info")) {
|
|
13
|
+
console.info(...args);
|
|
14
|
+
}
|
|
15
|
+
else if (firstArg.includes(":verbose")) {
|
|
16
|
+
console.debug(...args);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
console.debug(...args);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=log.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.common.js","sourceRoot":"","sources":["../../../src/logger/log.common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,UAAU,GAAG,CAAC,GAAG,IAAW;IAChC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACjC,IAAI,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACtC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YACzC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport function log(...args: any[]): void {\n if (args.length > 0) {\n const firstArg = String(args[0]);\n if (firstArg.includes(\":error\")) {\n console.error(...args);\n } else if (firstArg.includes(\":warning\")) {\n console.warn(...args);\n } else if (firstArg.includes(\":info\")) {\n console.info(...args);\n } else if (firstArg.includes(\":verbose\")) {\n console.debug(...args);\n } else {\n console.debug(...args);\n }\n }\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
//# sourceMappingURL=log.d.
|
|
1
|
+
export { log } from "./log.common.js";
|
|
2
|
+
//# sourceMappingURL=log-react-native.d.mts.map
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import * as process from "node:process";
|
|
6
|
-
export function log(message, ...args) {
|
|
7
|
-
process.stderr.write(`${util.format(message, ...args)}${EOL}`);
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=log.js.map
|
|
3
|
+
export { log } from "./log.common.js";
|
|
4
|
+
//# sourceMappingURL=log-react-native.mjs.map
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/logger/log.ts"],"names":[],"mappings":"AAOA,wBAAgB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAE1D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../src/logger/log.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC,MAAM,UAAU,GAAG,CAAC,OAAgB,EAAE,GAAG,IAAW;IAClD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;AACjE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { EOL } from \"node:os\";\nimport util from \"node:util\";\nimport * as process from \"node:process\";\n\nexport function log(message: unknown, ...args: any[]): void {\n process.stderr.write(`${util.format(message, ...args)}${EOL}`);\n}\n"]}
|