Comparing version 0.5.2 to 0.5.3
{ | ||
"name": "abl-utils", | ||
"title": "ABL - utils", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"license": "MIT", | ||
@@ -25,7 +25,7 @@ "description": "description", | ||
"dependencies": { | ||
"abl-constants": "git+ssh://github.com/bucket-list/constants.git#v0.1.12", | ||
"abl-lang": "git+ssh://github.com/bucket-list/lang.git#v0.3.1", | ||
"abl-constants": "git+ssh://github.com/bucket-list/constants.git#v0.2.2", | ||
"abl-lang": "git+ssh://github.com/bucket-list/lang.git#v0.3.5", | ||
"debug": "2.2.0", | ||
"escape-string-regexp": "1.0.5", | ||
"lodash": "4.6.1", | ||
"lodash": "4.8.2", | ||
"moment-config-trejgun": "git://github.com/TrejGun/moment-config-trejgun.git#v0.0.4", | ||
@@ -36,4 +36,4 @@ "qs": "6.1.0", | ||
"devDependencies": { | ||
"babel-config-trejgun": "git://github.com/TrejGun/babel-config-trejgun.git#v0.0.7", | ||
"eslint-config-trejgun": "git://github.com/TrejGun/eslint-config-trejgun.git#v0.0.2", | ||
"babel-config-trejgun": "git://github.com/TrejGun/babel-config-trejgun.git#v0.0.8", | ||
"eslint-config-trejgun": "git://github.com/TrejGun/eslint-config-trejgun.git#v0.0.3", | ||
"istanbul": "^1.0.0-alpha", | ||
@@ -40,0 +40,0 @@ "mocha": "2.4.5", |
"use strict"; | ||
import {merge} from "lodash"; | ||
import {map, merge} from "lodash"; | ||
import {dateFormat, timeFormat} from "abl-constants/build/date"; | ||
import {toDollars, formatUrl} from "./misc"; | ||
import {printAA} from "./transaction"; | ||
import {getAA} from "./transaction"; | ||
import moment from "moment-config-trejgun"; | ||
@@ -86,4 +86,4 @@ import {RRule} from "rrule"; | ||
booking: { | ||
attendees: printAA(charges.aap, "aap").join("\n\n"), | ||
addons: printAA(charges.addon, "addon").join("\n\n"), | ||
attendees: map(getAA(charges.aap, "aap"), (value, key) => `${key} x ${value}`).join("\n\n"), | ||
addons: map(getAA(charges.addon, "addon"), (value, key) => `${key} x ${value}`).join("\n\n"), | ||
count: charges.aap.length | ||
@@ -90,0 +90,0 @@ }, |
"use strict"; | ||
export function printAA(charges, type) { | ||
export function getAA(charges, type) { | ||
if (["aap", "addon"].indexOf(type) === -1) { // ChargeController.types | ||
@@ -15,3 +15,3 @@ throw new Error("Wrong charge type"); | ||
}); | ||
return Object.keys(obj).map(key => `${key} x ${obj[key]}`); | ||
return obj; | ||
} |
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 2 instances 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 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 2 instances in 1 package
18129
+ Addedlodash@4.8.2(transitive)
- Removedlodash@4.6.1(transitive)
Updatedabl-constants@git+ssh://github.com/bucket-list/constants.git#v0.2.2
Updatedabl-lang@git+ssh://github.com/bucket-list/lang.git#v0.3.5
Updatedlodash@4.8.2