@graphql-mesh/utils 0.95.2 → 0.95.3-alpha-20230905190608-cd2dc6855
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/cjs/logger.js +6 -0
- package/esm/logger.js +6 -0
- package/package.json +2 -2
- package/typings/logger.d.cts +1 -0
- package/typings/logger.d.ts +1 -0
package/cjs/logger.js
CHANGED
|
@@ -126,5 +126,11 @@ class DefaultLogger {
|
|
|
126
126
|
child(name) {
|
|
127
127
|
return new DefaultLogger(this.name ? `${this.name} - ${name}` : name);
|
|
128
128
|
}
|
|
129
|
+
addPrefix(prefix) {
|
|
130
|
+
if (!this.name?.includes(prefix)) {
|
|
131
|
+
this.name = this.name ? `${this.name} - ${prefix}` : prefix;
|
|
132
|
+
}
|
|
133
|
+
return this;
|
|
134
|
+
}
|
|
129
135
|
}
|
|
130
136
|
exports.DefaultLogger = DefaultLogger;
|
package/esm/logger.js
CHANGED
|
@@ -118,4 +118,10 @@ export class DefaultLogger {
|
|
|
118
118
|
child(name) {
|
|
119
119
|
return new DefaultLogger(this.name ? `${this.name} - ${name}` : name);
|
|
120
120
|
}
|
|
121
|
+
addPrefix(prefix) {
|
|
122
|
+
if (!this.name?.includes(prefix)) {
|
|
123
|
+
this.name = this.name ? `${this.name} - ${prefix}` : prefix;
|
|
124
|
+
}
|
|
125
|
+
return this;
|
|
126
|
+
}
|
|
121
127
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/utils",
|
|
3
|
-
"version": "0.95.
|
|
3
|
+
"version": "0.95.3-alpha-20230905190608-cd2dc6855",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@graphql-mesh/cross-helpers": "^0.4.0",
|
|
7
|
-
"@graphql-mesh/types": "
|
|
7
|
+
"@graphql-mesh/types": "0.95.3-alpha-20230905190608-cd2dc6855",
|
|
8
8
|
"@graphql-tools/utils": "^9.2.1 || ^10.0.0",
|
|
9
9
|
"graphql": "*",
|
|
10
10
|
"tslib": "^2.4.0"
|
package/typings/logger.d.cts
CHANGED