Comparing version 0.3.2 to 0.3.3
{ | ||
"name": "alpine-ts", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Alpine-ts - the Apache Log Parser in Typescript", | ||
@@ -44,4 +44,3 @@ "main": "src/index.js", | ||
"author": "uriel chemouni <uchemouni@gmail.com>", | ||
"contributors": [ | ||
{ | ||
"contributors": [{ | ||
"name": "Bjørn Hell Larsen", | ||
@@ -65,2 +64,2 @@ "email": "blarsen@nonews.net" | ||
] | ||
} | ||
} |
@@ -11,3 +11,3 @@ # Alpine-ts | ||
`alpine-ts` is a parser for Apache mod_log log files. It supports the three most common log formats | ||
`alpine-ts` is a parser for Apache mod_log log files. It supports the three most common log formats | ||
@@ -14,0 +14,0 @@ - the Common Log Format |
@@ -76,3 +76,5 @@ /** | ||
get extension(): string; | ||
get date(): Date; | ||
get timestamp(): number; | ||
} | ||
//# sourceMappingURL=alpineLine.d.ts.map |
@@ -49,4 +49,12 @@ "use strict"; | ||
} | ||
get date() { | ||
if (!this.time) | ||
return new Date(); | ||
return new Date(this.time.replace(':', ' ')); | ||
} | ||
get timestamp() { | ||
return this.date.getTime(); | ||
} | ||
} | ||
exports.AlpineLine = AlpineLine; | ||
//# sourceMappingURL=alpineLine.js.map |
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
33459
557