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

amplify-cli-logger

Package Overview
Dependencies
Maintainers
3
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amplify-cli-logger - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4-beta.0

16

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [1.2.4-beta.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-logger@1.2.3...amplify-cli-logger@1.2.4-beta.0) (2023-02-07)
**Note:** Version bump only for package amplify-cli-logger
## [1.2.3](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-logger@1.2.2...amplify-cli-logger@1.2.3) (2023-02-02)

@@ -34,2 +42,10 @@

## [1.2.2-beta.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-logger@1.2.1...amplify-cli-logger@1.2.2-beta.0) (2022-12-01)
**Note:** Version bump only for package amplify-cli-logger
## [1.2.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-logger@1.2.0...amplify-cli-logger@1.2.1) (2022-10-13)

@@ -36,0 +52,0 @@

2

lib/AmplifyLogger.d.ts

@@ -12,3 +12,3 @@ import winston, { Logger } from 'winston';

private formatter;
projectLocalLogInit(projecPath: string): void;
projectLocalLogInit(projectPath: string): void;
logInfo(content: LogPayload): void;

@@ -15,0 +15,0 @@ logError(content: LogErrorPayload): void;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -63,7 +67,7 @@ if (k2 === undefined) k2 = k;

}
projectLocalLogInit(projecPath) {
projectLocalLogInit(projectPath) {
if (!this.disabledAmplifyLogging) {
this.logger.add(new winston_daily_rotate_file_1.default({
auditFile: (0, getLogFilePath_1.getLocalAuditLogFile)(projecPath),
filename: (0, getLogFilePath_1.getLocalLogFilePath)(projecPath),
auditFile: (0, getLogFilePath_1.getLocalAuditLogFile)(projectPath),
filename: (0, getLogFilePath_1.getLocalLogFilePath)(projectPath),
datePattern: constants_1.constants.DATE_PATTERN,

@@ -70,0 +74,0 @@ maxFiles: constants_1.constants.MAX_FILE_DAYS,

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -5,5 +5,5 @@ import { LogErrorPayload, LogPayload } from './Types';

logInfo(content: LogPayload): void;
projectLocalLogInit(projecPath: string): void;
projectLocalLogInit(projectPath: string): void;
loggerEnd(): void;
}
//# sourceMappingURL=IAmplifyLogger.d.ts.map

@@ -1,8 +0,8 @@

export declare type LocalProjectData = {};
export declare type LogPayload = {
export type LocalProjectData = {};
export type LogPayload = {
message: string;
};
export declare type LogErrorPayload = LogPayload & {
export type LogErrorPayload = LogPayload & {
error: Error;
};
//# sourceMappingURL=Types.d.ts.map
{
"name": "amplify-cli-logger",
"version": "1.2.3",
"version": "1.2.4-beta.0",
"description": "Amplify CLI Logger",

@@ -27,2 +27,6 @@ "main": "lib/index.js",

},
"collectCoverageFrom": [
"src/**/*.{ts,tsx,js,jsx}",
"!src/__tests__/"
],
"testRegex": "(/src/__tests__/.*|(\\.|/)test)\\.tsx?$",

@@ -48,3 +52,3 @@ "coveragePathIgnorePatterns": [

},
"gitHead": "5370e8badb701f018ddc7459b3bf0ee7c80a7444"
"gitHead": "e6d05226913d2126030ffefe10d75252e5280cff"
}

@@ -50,8 +50,8 @@ import winston, { Logger, format } from 'winston';

projectLocalLogInit(projecPath: string): void {
projectLocalLogInit(projectPath: string): void {
if (!this.disabledAmplifyLogging) {
this.logger.add(
new winstonDailyRotateFile({
auditFile: getLocalAuditLogFile(projecPath),
filename: getLocalLogFilePath(projecPath),
auditFile: getLocalAuditLogFile(projectPath),
filename: getLocalLogFilePath(projectPath),
datePattern: constants.DATE_PATTERN,

@@ -58,0 +58,0 @@ maxFiles: constants.MAX_FILE_DAYS,

@@ -6,4 +6,4 @@ import { LogErrorPayload, LogPayload } from './Types';

logInfo(content: LogPayload): void;
projectLocalLogInit(projecPath: string): void;
projectLocalLogInit(projectPath: string): void;
loggerEnd(): void;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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