diff --git a/examples/models/exampleBooking.pass/pass.json b/examples/models/exampleBooking.pass/pass.json index f1fccb0..899869d 100644 --- a/examples/models/exampleBooking.pass/pass.json +++ b/examples/models/exampleBooking.pass/pass.json @@ -1,34 +1,36 @@ { - "formatVersion": 1, - "passTypeIdentifier": "pass.com.example.myapp", - "serialNumber": "nmyuxofgna", - "teamIdentifier": "F53WB8AE67", - "webServiceURL": "https://192.168.1.254:80/", - "authenticationToken": "vxwxd7J8AlNNFPS8k0a0FfUFtq0ewzFdc", - "relevantDate": "2011-12-08T13:00-08:00", - "locations": [ - { - "longitude": -122.3748889, - "latitude": 37.6189722 - }, - { - "longitude": -122.03118, - "latitude": 37.33182 - } - ], - "barcodes": [{ - "message": "123456789", - "format": "PKBarcodeFormatQR", - "messageEncoding": "iso-8859-1" - }], - "barcode": { - "message": "123456789", - "format": "PKBarcodeFormatQR", - "messageEncoding": "iso-8859-1" - }, - "organizationName": "Apple Inc.", - "description": "A Booking pass", - "foregroundColor": "rgb(255, 255, 255)", - "backgroundColor": "rgb(253, 123, 35)", - "boardingPass": {} + "formatVersion": 1, + "passTypeIdentifier": "pass.com.example.myapp", + "serialNumber": "nmyuxofgna", + "teamIdentifier": "F53WB8AE67", + "webServiceURL": "https://192.168.1.254:80/", + "authenticationToken": "vxwxd7J8AlNNFPS8k0a0FfUFtq0ewzFdc", + "relevantDate": "2011-12-08T13:00-08:00", + "locations": [ + { + "longitude": -122.3748889, + "latitude": 37.6189722 + }, + { + "longitude": -122.03118, + "latitude": 37.33182 + } + ], + "barcodes": [ + { + "message": "123456789", + "format": "PKBarcodeFormatQR", + "messageEncoding": "iso-8859-1" + } + ], + "barcode": { + "message": "123456789", + "format": "PKBarcodeFormatQR", + "messageEncoding": "iso-8859-1" + }, + "organizationName": "Apple Inc.", + "description": "A Booking pass", + "foregroundColor": "rgb(255, 255, 255)", + "backgroundColor": "rgb(253, 123, 35)", + "boardingPass": {} } diff --git a/examples/package.json b/examples/package.json index 59e2276..ccf2a40 100644 --- a/examples/package.json +++ b/examples/package.json @@ -1,25 +1,25 @@ { - "name": "examples", - "version": "0.0.0", - "description": "Passkit-generator examples", - "author": "Alexander P. Cerutti ", - "license": "ISC", - "scripts": { - "preinstall": "npm run clear:deps && npm unlink --no-save passkit-generator && cd .. && npm run build && npm link && cd examples && npm link passkit-generator", - "example": "cd build && node", - "build": "npm run build:clear && npx tsc", - "build:clear": "rm -rf build", - "clear:deps": "rm -rf node_modules" - }, - "dependencies": { - "express": "^4.17.1", - "node-fetch": "^2.6.1", - "tslib": "^2.1.0", - "passkit-generator": "latest" - }, - "devDependencies": { - "@types/express": "^4.17.0", - "@types/node-fetch": "^2.5.0", - "typescript": "^4.1.3" - } + "name": "examples", + "version": "0.0.0", + "description": "Passkit-generator examples", + "author": "Alexander P. Cerutti ", + "license": "ISC", + "scripts": { + "preinstall": "npm run clear:deps && npm unlink --no-save passkit-generator && cd .. && npm run build && npm link && cd examples && npm link passkit-generator", + "example": "cd build && node", + "build": "npm run build:clear && npx tsc", + "build:clear": "rm -rf build", + "clear:deps": "rm -rf node_modules" + }, + "dependencies": { + "express": "^4.17.1", + "node-fetch": "^2.6.1", + "tslib": "^2.1.0", + "passkit-generator": "latest" + }, + "devDependencies": { + "@types/express": "^4.17.0", + "@types/node-fetch": "^2.5.0", + "typescript": "^4.1.3" + } } diff --git a/index.d.ts b/index.d.ts index d0c53f7..5367f8f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -73,7 +73,7 @@ export declare class Pass { * @param data * @returns {Pass} */ - locations(resetFlag: null): this; + locations(resetFlag: null): this; locations(...data: Schema.Location[]): this; /** @@ -93,8 +93,8 @@ export declare class Pass { * @params data - other barcodes support * @return {this} Improved this with length property and other methods */ - barcodes(resetFlag: null): this; - barcodes(message: string): this; + barcodes(resetFlag: null): this; + barcodes(message: string): this; barcodes(...data: Schema.Barcode[]): this; /** @@ -136,10 +136,10 @@ export declare class Pass { export declare function createAbstractModel(options: Schema.AbstractFactoryOptions): Promise; export declare class AbstractModel { - constructor(options: Schema.AbstractModelOptions); - readonly certificates: Schema.FinalCertificates; - readonly bundle: Schema.PartitionedBundle; - readonly overrides: Schema.OverridesSupportedOptions; + constructor(options: Schema.AbstractModelOptions); + readonly certificates: Schema.FinalCertificates; + readonly bundle: Schema.PartitionedBundle; + readonly overrides: Schema.OverridesSupportedOptions; } declare namespace Schema { diff --git a/spec/support/jasmine.json b/spec/support/jasmine.json index 04f7d03..45a4bb4 100644 --- a/spec/support/jasmine.json +++ b/spec/support/jasmine.json @@ -1,6 +1,8 @@ { - "spec_dir": "spec", - "spec_files": [ "**/index.js" ], - "stopSpecOnExpectationFailure": false, - "random": true + "spec_dir": "spec", + "spec_files": [ + "**/index.js" + ], + "stopSpecOnExpectationFailure": false, + "random": true }