@walletpass/pass-js
Advanced tools
Comparing version
@@ -298,2 +298,8 @@ /** | ||
/** | ||
* Color of the strip text, specified as a CSS-style RGB triple. | ||
* | ||
* @example rgb(255, 255, 255) | ||
*/ | ||
stripColor?: PassColor | string; | ||
/** | ||
* Text displayed next to the logo on the pass. | ||
@@ -300,0 +306,0 @@ */ |
@@ -126,2 +126,9 @@ import { ApplePass } from '../interfaces'; | ||
/** | ||
* Color of the strip text, specified as a CSS-style RGB triple. | ||
* | ||
* @example rgb(255, 255, 255) | ||
*/ | ||
get stripColor(): [number, number, number] | string | undefined | PassColor; | ||
set stripColor(v: string | [number, number, number] | PassColor | undefined); | ||
/** | ||
* Maximum distance in meters from a relevant latitude and longitude that the pass is relevant. | ||
@@ -128,0 +135,0 @@ * This number is compared to the pass’s default distance and the smaller value is used. |
@@ -341,2 +341,22 @@ "use strict"; | ||
/** | ||
* Color of the strip text, specified as a CSS-style RGB triple. | ||
* | ||
* @example rgb(255, 255, 255) | ||
*/ | ||
get stripColor() { | ||
if (!(this.fields.stripColor instanceof pass_color_1.PassColor)) | ||
return undefined; | ||
return this.fields.stripColor; | ||
} | ||
set stripColor(v) { | ||
if (!v) { | ||
delete this.fields.stripColor; | ||
return; | ||
} | ||
if (!(this.fields.stripColor instanceof pass_color_1.PassColor)) | ||
this.fields.stripColor = new pass_color_1.PassColor(v); | ||
else | ||
this.fields.stripColor.set(v); | ||
} | ||
/** | ||
* Maximum distance in meters from a relevant latitude and longitude that the pass is relevant. | ||
@@ -343,0 +363,0 @@ * This number is compared to the pass’s default distance and the smaller value is used. |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/walletpass/pass-js", | ||
"version": "6.6.3", | ||
"version": "6.7.0", | ||
"license": "MIT", | ||
@@ -24,20 +24,20 @@ "engines": { | ||
"devDependencies": { | ||
"@destinationstransfers/eslint-plugin": "2.9.35", | ||
"@destinationstransfers/eslint-plugin": "2.9.63", | ||
"@types/buffer-crc32": "0.2.0", | ||
"@types/color-name": "1.1.1", | ||
"@types/jest": "24.0.22", | ||
"@types/node": "12.12.6", | ||
"@types/node-forge": "0.8.7", | ||
"@types/jest": "24.0.23", | ||
"@types/node": "12.12.14", | ||
"@types/node-forge": "0.9.0", | ||
"@types/yauzl": "2.9.1", | ||
"@typescript-eslint/eslint-plugin": "2.6.1", | ||
"@typescript-eslint/parser": "2.6.1", | ||
"@typescript-eslint/typescript-estree": "2.6.1", | ||
"@typescript-eslint/eslint-plugin": "2.10.0", | ||
"@typescript-eslint/parser": "2.10.0", | ||
"@typescript-eslint/typescript-estree": "2.10.0", | ||
"env-app-yaml": "1.0.0", | ||
"eslint": "6.6.0", | ||
"husky": "3.0.9", | ||
"eslint": "6.7.2", | ||
"husky": "3.1.0", | ||
"jest": "25.0.0", | ||
"jest-extended": "0.11.2", | ||
"jest-junit": "9.0.0", | ||
"lint-staged": "9.4.2", | ||
"ts-jest": "24.1.0", | ||
"jest-junit": "10.0.0", | ||
"lint-staged": "9.5.0", | ||
"ts-jest": "24.2.0", | ||
"typescript": "3.7.2" | ||
@@ -48,3 +48,3 @@ }, | ||
"lint": "eslint \"{src,__tests__}/**/*.ts\" --ignore-pattern \"*test*\" --ignore-path .gitignore", | ||
"postversion": "git push origin master --atomic", | ||
"postversion": "git push origin master --follow-tags", | ||
"prepublishOnly": "tsc", | ||
@@ -51,0 +51,0 @@ "costs": "npx cost-of-modules --no-install" |
130865
0.83%2986
1.12%