Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

better-fns

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-fns - npm Package Compare versions

Comparing version 1.1.5 to 1.2.0

dist/opentelemetry.d.ts

4

dist/index.d.ts

@@ -34,4 +34,4 @@ type Fn<I extends Array<any>, O> = (...args: I) => O | Promise<O>;

getExecutionData(): ExecutionData;
setAbitraryData(key: unknown, value: unknown): void;
getAbitraryData<T>(key: unknown): T | undefined;
setArbitraryData(key: unknown, value: unknown): void;
getArbitraryData<T>(key: unknown): T;
}

@@ -38,0 +38,0 @@ type ExecutionState<T> = {

@@ -58,6 +58,6 @@ var __defProp = Object.defineProperty;

}
setAbitraryData(key, value) {
setArbitraryData(key, value) {
this.abitraryData.set(key, value);
}
getAbitraryData(key) {
getArbitraryData(key) {
return this.abitraryData.get(key);

@@ -64,0 +64,0 @@ }

@@ -38,3 +38,3 @@ var __defProp = Object.defineProperty;

var getLogger = (context, opts) => {
const parentLogger = context.parent?.getAbitraryData(loggerSymbol);
const parentLogger = context.parent?.getArbitraryData(loggerSymbol);
if (!parentLogger) {

@@ -52,3 +52,3 @@ const logger2 = (0, import_pino.pino)({

});
context.setAbitraryData(loggerSymbol, logger2);
context.setArbitraryData(loggerSymbol, logger2);
return logger2;

@@ -60,3 +60,3 @@ } else {

});
context.setAbitraryData(loggerSymbol, logger2);
context.setArbitraryData(loggerSymbol, logger2);
return logger2;

@@ -63,0 +63,0 @@ }

{
"name": "better-fns",
"version": "1.1.5",
"version": "1.2.0",
"files": [

@@ -18,7 +18,14 @@ "dist",

"require": "./dist/index.cjs",
"import": "./dist/index.js"
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./logger": {
"require": "./dist/logger.cjs",
"import": "./dist/logger.js"
"import": "./dist/logger.js",
"types": "./dist/logger.d.ts"
},
"./opentelemetry": {
"require": "./dist/opentelemetry.cjs",
"import": "./dist/opentelemetry.js",
"types": "./dist/opentelemetry.d.ts"
}

@@ -28,6 +35,5 @@ },

"devDependencies": {
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/sdk-trace-base": "^1.22.0",
"@types/lodash": "^4.17.0",
"lodash": "^4.17.21",
"pino": "^8.19.0",
"pino-pretty": "^11.0.0",
"standard-version": "^9.5.0",

@@ -39,6 +45,14 @@ "tsup": "^8.0.2",

},
"peerDependencies": {
"@opentelemetry/api": "*",
"@opentelemetry/sdk-trace-base": "*",
"lodash": "^4.17.21",
"pino": "^8.19.0",
"pino-pretty": "^11.0.0"
},
"tsup": {
"entry": [
"src/index.ts",
"src/logger.ts"
"src/logger.ts",
"src/opentelemetry.ts"
],

@@ -45,0 +59,0 @@ "clean": true,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc