passkit-webservice-toolkit
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "passkit-webservice-toolkit", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Integrate Apple Wallet Service with ease", | ||
@@ -8,10 +8,7 @@ "type": "commonjs", | ||
"build": "rm -rf lib && pnpm tsc -b tsconfig.esm.json tsconfig.cjs.json && pnpm build:dual", | ||
"prepublish": "pnpm build", | ||
"build:dual": "tsconfig-to-dual-package tsconfig.esm.json tsconfig.cjs.json", | ||
"test": "pnpm test:prepare && pnpm test:ts && node --test && pnpm test:cleanup", | ||
"build:dual": "pnpm tsconfig-to-dual-package tsconfig.esm.json tsconfig.cjs.json", | ||
"test": "pnpm build && pnpm test:ts && node --test", | ||
"test:ts": "pnpm tsc --noEmit --allowJs --checkJs", | ||
"test:prepare": "pnpm build && pnpm link .", | ||
"test:cleanup": "pnpm unlink passkit-webservice-toolkit" | ||
"prepublish": "pnpm test" | ||
}, | ||
"repository": "https://github.com/alexandercerutti/passkit-webservice-toolkit", | ||
"keywords": [ | ||
@@ -25,6 +22,4 @@ "apple wallet", | ||
"devDependencies": { | ||
"@types/node": "^20.9.2", | ||
"prettier": "^3.1.0", | ||
"tsconfig-to-dual-package": "^1.2.0", | ||
"typescript": "^5.2.2" | ||
"passkit-webservice-toolkit": "1.0.4", | ||
"tsconfig-to-dual-package": "^1.2.0" | ||
}, | ||
@@ -34,5 +29,12 @@ "dependencies": { | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "github:alexandercerutti/passkit-webservice-toolkit", | ||
"directory": "packages/toolkit" | ||
}, | ||
"bugs": "https://github.com/alexandercerutti/passkit-webservice-toolkit/issues", | ||
"files": [ | ||
"lib/**/*.+(js|d.ts)!(*.map)" | ||
] | ||
], | ||
"gitHead": "a1cec9ac01c0553bd49fab0b835b284fe53bc03a" | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createEndpointDefinition = void 0; | ||
exports.createEndpointDefinition = createEndpointDefinition; | ||
function createEndpointDefinition(signature) { | ||
@@ -19,3 +19,2 @@ const [method, path] = signature.split("\x20"); | ||
} | ||
exports.createEndpointDefinition = createEndpointDefinition; | ||
//# sourceMappingURL=endpointDefinition.js.map |
@@ -12,3 +12,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isAuthorizationSchemeValid = exports.getAuthorizationToken = void 0; | ||
exports.getAuthorizationToken = getAuthorizationToken; | ||
exports.isAuthorizationSchemeValid = isAuthorizationSchemeValid; | ||
function getAuthorizationToken(authorizationString) { | ||
@@ -25,3 +26,2 @@ const authorization = authorizationString || ""; | ||
} | ||
exports.getAuthorizationToken = getAuthorizationToken; | ||
/** | ||
@@ -38,3 +38,2 @@ * Utility to verify the scheme sent by Apple. | ||
} | ||
exports.isAuthorizationSchemeValid = isAuthorizationSchemeValid; | ||
//# sourceMappingURL=auth.js.map |
{ | ||
"name": "passkit-webservice-toolkit", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Integrate Apple Wallet Service with ease", | ||
@@ -8,10 +8,7 @@ "type": "module", | ||
"build": "rm -rf lib && pnpm tsc -b tsconfig.esm.json tsconfig.cjs.json && pnpm build:dual", | ||
"prepublish": "pnpm build", | ||
"build:dual": "tsconfig-to-dual-package tsconfig.esm.json tsconfig.cjs.json", | ||
"test": "pnpm test:prepare && pnpm test:ts && node --test && pnpm test:cleanup", | ||
"build:dual": "pnpm tsconfig-to-dual-package tsconfig.esm.json tsconfig.cjs.json", | ||
"test": "pnpm build && pnpm test:ts && node --test", | ||
"test:ts": "pnpm tsc --noEmit --allowJs --checkJs", | ||
"test:prepare": "pnpm build && pnpm link .", | ||
"test:cleanup": "pnpm unlink passkit-webservice-toolkit" | ||
"prepublish": "pnpm test" | ||
}, | ||
"repository": "https://github.com/alexandercerutti/passkit-webservice-toolkit", | ||
"keywords": [ | ||
@@ -25,6 +22,4 @@ "apple wallet", | ||
"devDependencies": { | ||
"@types/node": "^20.9.2", | ||
"prettier": "^3.1.0", | ||
"tsconfig-to-dual-package": "^1.2.0", | ||
"typescript": "^5.2.2" | ||
"passkit-webservice-toolkit": "1.0.4", | ||
"tsconfig-to-dual-package": "^1.2.0" | ||
}, | ||
@@ -34,5 +29,12 @@ "dependencies": { | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "github:alexandercerutti/passkit-webservice-toolkit", | ||
"directory": "packages/toolkit" | ||
}, | ||
"bugs": "https://github.com/alexandercerutti/passkit-webservice-toolkit/issues", | ||
"files": [ | ||
"lib/**/*.+(js|d.ts)!(*.map)" | ||
] | ||
], | ||
"gitHead": "a1cec9ac01c0553bd49fab0b835b284fe53bc03a" | ||
} |
100
package.json
{ | ||
"name": "passkit-webservice-toolkit", | ||
"version": "1.0.3", | ||
"description": "Integrate Apple Wallet Service with ease", | ||
"type": "module", | ||
"main": "./lib/cjs/index.js", | ||
"repository": "https://github.com/alexandercerutti/passkit-webservice-toolkit", | ||
"keywords": [ | ||
"apple wallet", | ||
"passkit", | ||
"passbook" | ||
], | ||
"author": "Alexander Patrick Cerutti", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "^20.9.2", | ||
"prettier": "^3.1.0", | ||
"tsconfig-to-dual-package": "^1.2.0", | ||
"typescript": "^5.2.2" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.6.2" | ||
}, | ||
"exports": { | ||
".": { | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js" | ||
}, | ||
"./v1": { | ||
"import": "./lib/esm/services/v1/index.js", | ||
"require": "./lib/cjs/services/v1/index.js" | ||
}, | ||
"./v1/*": { | ||
"import": "./lib/esm/services/v1/*", | ||
"require": "./lib/cjs/services/v1/*" | ||
} | ||
}, | ||
"files": [ | ||
"lib/**/*.+(js|d.ts)!(*.map)" | ||
], | ||
"scripts": { | ||
"build": "rm -rf lib && pnpm tsc -b tsconfig.esm.json tsconfig.cjs.json && pnpm build:dual", | ||
"prepublish": "pnpm build", | ||
"build:dual": "tsconfig-to-dual-package tsconfig.esm.json tsconfig.cjs.json", | ||
"test": "pnpm test:prepare && pnpm test:ts && node --test && pnpm test:cleanup", | ||
"test:ts": "pnpm tsc --noEmit --allowJs --checkJs", | ||
"test:prepare": "pnpm build && pnpm link .", | ||
"test:cleanup": "pnpm unlink passkit-webservice-toolkit" | ||
} | ||
} | ||
"name": "passkit-webservice-toolkit", | ||
"version": "1.0.4", | ||
"description": "Integrate Apple Wallet Service with ease", | ||
"type": "module", | ||
"main": "./lib/cjs/index.js", | ||
"scripts": { | ||
"build": "rm -rf lib && pnpm tsc -b tsconfig.esm.json tsconfig.cjs.json && pnpm build:dual", | ||
"build:dual": "pnpm tsconfig-to-dual-package tsconfig.esm.json tsconfig.cjs.json", | ||
"test": "pnpm build && pnpm test:ts && node --test", | ||
"test:ts": "pnpm tsc --noEmit --allowJs --checkJs", | ||
"prepublish": "pnpm test" | ||
}, | ||
"keywords": [ | ||
"apple wallet", | ||
"passkit", | ||
"passbook" | ||
], | ||
"author": "Alexander Patrick Cerutti", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"passkit-webservice-toolkit": "1.0.4", | ||
"tsconfig-to-dual-package": "^1.2.0" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.6.2" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "github:alexandercerutti/passkit-webservice-toolkit", | ||
"directory": "packages/toolkit" | ||
}, | ||
"bugs": "https://github.com/alexandercerutti/passkit-webservice-toolkit/issues", | ||
"exports": { | ||
".": { | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js" | ||
}, | ||
"./v1": { | ||
"import": "./lib/esm/services/v1/index.js", | ||
"require": "./lib/cjs/services/v1/index.js" | ||
}, | ||
"./v1/*": { | ||
"import": "./lib/esm/services/v1/*", | ||
"require": "./lib/cjs/services/v1/*" | ||
} | ||
}, | ||
"files": [ | ||
"lib/**/*.+(js|d.ts)!(*.map)" | ||
], | ||
"gitHead": "a1cec9ac01c0553bd49fab0b835b284fe53bc03a" | ||
} |
# Passkit WebService Toolkit | ||
Integrate Apple Wallet Web services with ease. | ||
## Architecture | ||
Passkit WebService Toolkit is a set of functions and constants that aim to make it easier to create an Apple-Wallet-Webservice-compliant API. | ||
Passkit WebService Toolkit is a framework agnostic library that aims to wrap the endpoints defined by Apple in its [documentation](https://developer.apple.com/documentation/walletpasses/adding_a_web_service_to_update_passes) in a Typescript developer-friendly interface. | ||
It exposes the endpoints defined by Apple in its [documentation](https://developer.apple.com/documentation/walletpasses/adding_a_web_service_to_update_passes) and makes it easier for them to be used in a Typescript-based project, by keeping an eye on the developer experience and endpoint versioning. | ||
This package purpose is to create a base on which other packages of the same monorepo can be written on and to create external integrations of Apple Wallet Webservices. You can even propose your own integration based on this! | ||
This library is meant to be **framework-agnostic** and **not really to be imported directly**. Instead, it is meant to be **used by third-party libraries to create integrations** with Apple Wallet webservices with existing frameworks (e.g. Fastify, Express, ...). | ||
If you are aiming to use an integration, instead, **you can give a look at some third-party integrations, [listed in the parent directory](../)**. | ||
If you are aiming to use an integration, instead, **you can give a look at some third-party integrations, [whose are listed below](#third-parties-integrations)**. | ||
### Installation | ||
@@ -26,9 +22,1 @@ | ||
All the exposed informations are detailed in the Wiki. | ||
--- | ||
## Third parties integrations | ||
Did you develop an integration that uses this package? Open a Pull Request to add it here! | ||
- [Fastify Passkit Webservice](https://github.com/alexandercerutti/fastify-passkit-webservice) |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2
0
24084
45
434
22