@webiny/website-builder-sdk 0.0.0-unstable.9bd236cf5e → 0.0.0-unstable.e0bfc55d5a
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/Logger.js +7 -4
- package/Logger.js.map +1 -1
- package/package.json +4 -4
package/Logger.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import pino from "pino";
|
|
2
|
+
const isProduction = process.env.NODE_ENV === "production";
|
|
2
3
|
export const logger = pino({
|
|
3
4
|
name: "Website Builder SDK",
|
|
4
|
-
level: "debug",
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
level: isProduction ? "silent" : "debug",
|
|
6
|
+
...(isProduction ? {} : {
|
|
7
|
+
transport: {
|
|
8
|
+
target: "pino-pretty"
|
|
9
|
+
}
|
|
10
|
+
})
|
|
8
11
|
});
|
|
9
12
|
|
|
10
13
|
//# sourceMappingURL=Logger.js.map
|
package/Logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["pino","logger","name","level","transport","target"],"sources":["Logger.ts"],"sourcesContent":["import pino from \"pino\";\n\nexport const logger = pino({\n name: \"Website Builder SDK\",\n level: \"debug\",\n transport: {
|
|
1
|
+
{"version":3,"names":["pino","isProduction","process","env","NODE_ENV","logger","name","level","transport","target"],"sources":["Logger.ts"],"sourcesContent":["import pino from \"pino\";\n\nconst isProduction = process.env.NODE_ENV === \"production\";\n\nexport const logger = pino({\n name: \"Website Builder SDK\",\n level: isProduction ? \"silent\" : \"debug\",\n ...(isProduction ? {} : { transport: { target: \"pino-pretty\" } })\n});\n"],"mappings":"AAAA,OAAOA,IAAI,MAAM,MAAM;AAEvB,MAAMC,YAAY,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY;AAE1D,OAAO,MAAMC,MAAM,GAAGL,IAAI,CAAC;EACvBM,IAAI,EAAE,qBAAqB;EAC3BC,KAAK,EAAEN,YAAY,GAAG,QAAQ,GAAG,OAAO;EACxC,IAAIA,YAAY,GAAG,CAAC,CAAC,GAAG;IAAEO,SAAS,EAAE;MAAEC,MAAM,EAAE;IAAc;EAAE,CAAC;AACpE,CAAC,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/website-builder-sdk",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.e0bfc55d5a",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@types/deep-equal": "1.0.4",
|
|
32
32
|
"@types/is-hotkey": "0.1.10",
|
|
33
33
|
"@types/micromatch": "4.0.9",
|
|
34
|
-
"@webiny/cli": "0.0.0-unstable.
|
|
35
|
-
"@webiny/project-utils": "0.0.0-unstable.
|
|
34
|
+
"@webiny/cli": "0.0.0-unstable.e0bfc55d5a",
|
|
35
|
+
"@webiny/project-utils": "0.0.0-unstable.e0bfc55d5a",
|
|
36
36
|
"typescript": "5.3.3"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "e0bfc55d5a4d6a42b32e6558d9fb2eb6753e331b"
|
|
54
54
|
}
|