Comparing version 0.4.6 to 0.4.7
{ | ||
"name": "abl-utils", | ||
"title": "ABL - utils", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "description": "description", | ||
"dependencies": { | ||
"abl-constants": "git+ssh://github.com/bucket-list/constants.git#v0.1.10", | ||
"abl-constants": "git+ssh://github.com/bucket-list/constants.git#v0.1.12", | ||
"abl-lang": "git+ssh://github.com/bucket-list/lang.git#v0.1.11", | ||
@@ -31,2 +31,3 @@ "debug": "2.2.0", | ||
"lodash": "4.6.1", | ||
"moment-config-trejgun": "git://github.com/TrejGun/moment-config-trejgun.git#v0.0.4", | ||
"qs": "6.1.0", | ||
@@ -51,3 +52,3 @@ "rrule": "2.1.0" | ||
"release": "release () { npm run pull && if [ -z $1 ]; then npm version patch; else npm version $1; fi && npm run push; }; release", | ||
"lint": "eslint source/*", | ||
"lint": "eslint source/* test/* --fix --quiet", | ||
"test": "NODE_ENV=${NODE_ENV:=test} node_modules/.bin/babel-node node_modules/.bin/_mocha", | ||
@@ -54,0 +55,0 @@ "coverage": "NODE_ENV=${NODE_ENV:=test} babel-node node_modules/istanbul/lib/cli cover --report text --report html node_modules/.bin/_mocha test/utils" |
"use strict"; | ||
export default { | ||
[process.env.NODE_ENV]: { | ||
server: { | ||
protocol: process.env.ABL_SERVER_PROTOCOL, | ||
hostname: process.env.ABL_SERVER_HOSTNAME, | ||
port: process.env.ABL_SERVER_PORT | ||
} | ||
} | ||
[process.env.NODE_ENV]: { | ||
server: { | ||
protocol: process.env.ABL_SERVER_PROTOCOL, | ||
hostname: process.env.ABL_SERVER_HOSTNAME, | ||
port: process.env.ABL_SERVER_PORT | ||
} | ||
}, | ||
test: { | ||
server: { | ||
protocol: "https", | ||
hostname: "localhost", | ||
port: 443 | ||
} | ||
} | ||
}; |
"use strict"; | ||
import moment from "abl-constants/build/moment"; | ||
import moment from "moment-config-trejgun"; | ||
import {googleFormat, ISO_8601} from "abl-constants/build/date"; | ||
@@ -24,3 +24,3 @@ import {isType} from "./misc"; | ||
case isType(date, "Date"): | ||
return moment(date); | ||
return moment(date).toDate(); | ||
case isType(date, "String"): | ||
@@ -31,4 +31,4 @@ return moment.tz(date, ISO_8601, "UTC"); | ||
default: | ||
return moment(null); | ||
return moment(0 / 0).toDate(); | ||
} | ||
} | ||
} |
@@ -7,3 +7,3 @@ "use strict"; | ||
import {printAA} from "./transaction"; | ||
import moment from "abl-constants/build/moment"; | ||
import moment from "moment-config-trejgun"; | ||
import {RRule} from "rrule"; | ||
@@ -10,0 +10,0 @@ |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 2 instances in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
18379
475
8
4