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

@openfn/logger

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfn/logger - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

6

CHANGELOG.md
# @openfn/logger
## 0.0.19
### Patch Changes
- ca701e8: Log json with high-resolution timestamp
## 0.0.18

@@ -4,0 +10,0 @@

10

dist/index.d.ts

@@ -27,3 +27,3 @@ type SanitizePolicies = 'remove' | 'obfuscate' | 'summarize' | 'none';

name?: string;
time: number;
time: string;
};

@@ -66,8 +66,10 @@ type StringLog = [LogFns | 'confirm' | 'print', ...any];

declare const _default$1: (v: string) => boolean;
declare const _default$2: (v: string) => boolean;
declare const _default: (timeInMs: number) => string;
declare const _default$1: (timeInMs: number) => string;
declare const _default: () => bigint;
declare const defaultLogger: Logger;
export { JSONLog, LogLevel, LogOptions, Logger, SanitizePolicies, StringLog, mockLogger as createMockLogger, export_default as default, defaultLogger, _default$1 as isValidLogLevel, _default as printDuration };
export { JSONLog, LogLevel, LogOptions, Logger, SanitizePolicies, StringLog, mockLogger as createMockLogger, export_default as default, defaultLogger, _default$2 as isValidLogLevel, _default$1 as printDuration, _default as timestamp };

11

dist/index.js

@@ -113,2 +113,7 @@ // src/logger.ts

// src/util/timestamp.ts
var start = BigInt(Date.now()) * BigInt(1e6);
var startDiff = process.hrtime.bigint();
var timestamp_default = () => start + (process.hrtime.bigint() - startDiff);
// src/options.ts

@@ -211,5 +216,4 @@ var defaultEmitter = {

message,
time: Date.now()
time: timestamp_default().toString()
};
stringify2(output);
emitter[level](stringify2(output));

@@ -411,3 +415,4 @@ };

is_valid_log_level_default as isValidLogLevel,
duration_default as printDuration
duration_default as printDuration,
timestamp_default as timestamp
};
{
"name": "@openfn/logger",
"version": "0.0.18",
"version": "0.0.19",
"description": "Cross-package logging utility",

@@ -5,0 +5,0 @@ "module": "dist/index.js",

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