@timberio/node
Advanced tools
Comparing version 0.34.1 to 0.34.2
@@ -21,3 +21,3 @@ "use strict"; | ||
Authorization: `Bearer ${this._apiKey}`, | ||
"User-Agent": "timber-js(node)", | ||
"User-Agent": "timber-js(node)" | ||
}, | ||
@@ -27,3 +27,3 @@ // body: logs.map(log => `${log.level}: ${log.message}`).join("\n") | ||
// TODO - using JSON for now; switch to msgpack later | ||
body: JSON.stringify(logs), | ||
body: JSON.stringify(logs) | ||
}); | ||
@@ -30,0 +30,0 @@ if (res.ok) { |
@@ -27,3 +27,3 @@ "use strict"; | ||
level: types_1.LogLevel.Info, | ||
message, | ||
message | ||
}; | ||
@@ -61,3 +61,3 @@ } | ||
callback(); | ||
}, | ||
} | ||
}); | ||
@@ -64,0 +64,0 @@ // Fixtures |
@@ -16,3 +16,3 @@ import fetch from "cross-fetch"; | ||
Authorization: `Bearer ${this._apiKey}`, | ||
"User-Agent": "timber-js(node)", | ||
"User-Agent": "timber-js(node)" | ||
}, | ||
@@ -22,3 +22,3 @@ // body: logs.map(log => `${log.level}: ${log.message}`).join("\n") | ||
// TODO - using JSON for now; switch to msgpack later | ||
body: JSON.stringify(logs), | ||
body: JSON.stringify(logs) | ||
}); | ||
@@ -25,0 +25,0 @@ if (res.ok) { |
@@ -15,3 +15,3 @@ import * as os from "os"; | ||
level: LogLevel.Info, | ||
message, | ||
message | ||
}; | ||
@@ -49,3 +49,3 @@ } | ||
callback(); | ||
}, | ||
} | ||
}); | ||
@@ -52,0 +52,0 @@ // Fixtures |
{ | ||
"name": "@timberio/node", | ||
"version": "0.34.1", | ||
"version": "0.34.2", | ||
"description": "Timber.io - Node.js logger", | ||
@@ -43,4 +43,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@timberio/core": "^0.34.1", | ||
"@timberio/types": "^0.34.1", | ||
"@timberio/core": "^0.34.2", | ||
"@timberio/types": "^0.34.2", | ||
"@types/msgpack5": "^3.4.1", | ||
@@ -50,3 +50,3 @@ "cross-fetch": "^2.2.3", | ||
}, | ||
"gitHead": "6f7c90e13c1df2812f44ef8f79f9a37f4b08246f" | ||
"gitHead": "ec0b79251c13ad3fb569e78daa7e032db965a266" | ||
} |
@@ -18,3 +18,3 @@ import * as os from "os"; | ||
level: LogLevel.Info, | ||
message, | ||
message | ||
}; | ||
@@ -54,3 +54,3 @@ } | ||
encoding: string, | ||
callback: (error?: Error | null) => void, | ||
callback: (error?: Error | null) => void | ||
): void { | ||
@@ -64,3 +64,3 @@ // Will be a buffered JSON string -- parse | ||
callback(); | ||
}, | ||
} | ||
}); | ||
@@ -67,0 +67,0 @@ |
@@ -22,3 +22,3 @@ import { Duplex, Writable } from "stream"; | ||
sourceKey: string, | ||
options?: Partial<ITimberOptions>, | ||
options?: Partial<ITimberOptions> | ||
) { | ||
@@ -37,3 +37,3 @@ super(apiKey, sourceKey, options); | ||
Authorization: `Bearer ${this._apiKey}`, | ||
"User-Agent": "timber-js(node)", | ||
"User-Agent": "timber-js(node)" | ||
}, | ||
@@ -44,4 +44,4 @@ // body: logs.map(log => `${log.level}: ${log.message}`).join("\n") | ||
// TODO - using JSON for now; switch to msgpack later | ||
body: JSON.stringify(logs), | ||
}, | ||
body: JSON.stringify(logs) | ||
} | ||
); | ||
@@ -75,3 +75,3 @@ | ||
level?: LogLevel, | ||
context: TContext = {} as TContext, | ||
context: TContext = {} as TContext | ||
) { | ||
@@ -78,0 +78,0 @@ // Process/sync the log, per `Base` logic |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37036
Updated@timberio/core@^0.34.2
Updated@timberio/types@^0.34.2