send-sls-logger 0.0.5 → 0.0.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.
- package/index.d.ts +18 -0
- package/package.json +2 -1
- package/readme.md +5 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WebTrackerBrowserOptions } from "@aliyun-sls/web-track-browser";
|
|
2
|
+
|
|
3
|
+
interface StringObject {
|
|
4
|
+
[name: string]: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface initConfig {
|
|
8
|
+
defaultData?: StringObject;
|
|
9
|
+
defaultExclude?: string[];
|
|
10
|
+
options?: WebTrackerBrowserOptions;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare namespace logger {
|
|
14
|
+
export function error(str: string | StringObject): void;
|
|
15
|
+
export function warn(str: string | StringObject): void;
|
|
16
|
+
export function log(str: string | StringObject): void;
|
|
17
|
+
export function init(config: initConfig): void;
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "send-sls-logger",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "阿里云sls的logger发送",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
|
+
"types": "./index.d.ts",
|
|
9
10
|
"keywords": [
|
|
10
11
|
"logger",
|
|
11
12
|
"sls"
|