@aircall/logger
Advanced tools
Comparing version 0.0.3 to 0.0.4
import Logger from './Logger'; | ||
import * as types from './types'; | ||
import * as redux from './redux'; | ||
declare const logger: Logger; | ||
export { types, redux }; | ||
export { redux }; | ||
export default logger; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Logger_1 = require("./Logger"); | ||
const types = require("./types"); | ||
exports.types = types; | ||
const redux = require("./redux"); | ||
@@ -7,0 +5,0 @@ exports.redux = redux; |
@@ -1,2 +0,12 @@ | ||
import { InitOptions, Identifycation } from './types/Logger'; | ||
declare type Identification = { | ||
user_id: string; | ||
app_version: string; | ||
company: number; | ||
platform: string; | ||
environment: string; | ||
}; | ||
export declare type InitOptions = { | ||
debugMode: boolean; | ||
key: string; | ||
}; | ||
export default class Logger { | ||
@@ -10,3 +20,3 @@ private initialized; | ||
init(options: InitOptions): void; | ||
identify(options: Identifycation): void; | ||
identify(options: Identification): void; | ||
private log; | ||
@@ -18,1 +28,2 @@ info(message: string, properties?: any): void; | ||
} | ||
export {}; |
@@ -1,2 +0,20 @@ | ||
import { Actions, TYPES } from './types/Redux'; | ||
import { InitOptions } from './Logger'; | ||
export declare enum TYPES { | ||
INIT = "LOGGER_INIT", | ||
IDENTIFY = "LOGGER_IDENTIFY", | ||
LOG = "LOGGER_LOG", | ||
INFO = "LOGGER_INFO", | ||
WARN = "LOGGER_WARN", | ||
ERROR = "LOGGER_ERROR", | ||
TRACK = "LOGGER_TRACK" | ||
} | ||
export declare namespace Actions { | ||
interface init extends InitOptions { | ||
type: TYPES.INIT; | ||
} | ||
interface log { | ||
message: string; | ||
properties: any; | ||
} | ||
} | ||
export declare const info: (message: string, properties?: any) => Actions.log & { | ||
@@ -3,0 +21,0 @@ type: TYPES.INFO; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Redux_1 = require("./types/Redux"); | ||
var TYPES; | ||
(function (TYPES) { | ||
TYPES["INIT"] = "LOGGER_INIT"; | ||
TYPES["IDENTIFY"] = "LOGGER_IDENTIFY"; | ||
TYPES["LOG"] = "LOGGER_LOG"; | ||
TYPES["INFO"] = "LOGGER_INFO"; | ||
TYPES["WARN"] = "LOGGER_WARN"; | ||
TYPES["ERROR"] = "LOGGER_ERROR"; | ||
TYPES["TRACK"] = "LOGGER_TRACK"; | ||
})(TYPES = exports.TYPES || (exports.TYPES = {})); | ||
exports.info = (message, properties) => ({ | ||
type: Redux_1.TYPES.INFO, | ||
type: TYPES.INFO, | ||
message, | ||
@@ -10,3 +19,3 @@ properties | ||
exports.warn = (message, properties) => ({ | ||
type: Redux_1.TYPES.WARN, | ||
type: TYPES.WARN, | ||
message, | ||
@@ -16,3 +25,3 @@ properties | ||
exports.error = (message, properties) => ({ | ||
type: Redux_1.TYPES.ERROR, | ||
type: TYPES.ERROR, | ||
message, | ||
@@ -22,3 +31,3 @@ properties | ||
exports.track = (message, properties) => ({ | ||
type: Redux_1.TYPES.TRACK, | ||
type: TYPES.TRACK, | ||
message, | ||
@@ -25,0 +34,0 @@ properties |
{ | ||
"name": "@aircall/logger", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "dist/index.js", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
"build": "tsc", | ||
"build": "rm -rf dist && tsc", | ||
"prepare": "npm build" | ||
@@ -13,3 +13,3 @@ }, | ||
}, | ||
"gitHead": "57cef183e1af0b054b38c304b262a76f8842a5c3" | ||
"gitHead": "bc1fe54507000b1087c9a27f20736145bea1c58e" | ||
} |
@@ -29,3 +29,3 @@ { | ||
"outDir": "dist", | ||
"rootDir": "." | ||
"rootDir": "./src" | ||
}, | ||
@@ -32,0 +32,0 @@ "include": [ |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20987
19
354
2