Skip to content

Commit

Permalink
Updating the token.d.ts file, updating package.json to set `expor…
Browse files Browse the repository at this point in the history
…ts.types`
  • Loading branch information
avoidwork committed Nov 2, 2023
1 parent 0420bef commit bd20532
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/adobe-ims-servicetoken.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 3.0.6
* @version 3.0.7
*/
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion dist/adobe-ims-servicetoken.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 3.0.6
* @version 3.0.7
*/
import {createHash}from'node:crypto';import fetch from'cross-fetch';const AMPERSAND = "&";
const BASE64 = "base64";
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "adobe-ims-servicetoken",
"version": "3.0.6",
"version": "3.0.7",
"description": "Adobe IMS Service Token lifecycle management",
"source": "src/ims.js",
"main": "dist/adobe-ims-servicetoken.cjs",
"exports": {
"types": "./types/token.d.ts",
"import": "./dist/adobe-ims-servicetoken.js",
"require": "./dist/adobe-ims-servicetoken.cjs"
},
Expand All @@ -22,7 +23,7 @@
"lint": "eslint *.js src/*.js",
"rollup": "rollup --config",
"test": "npm run lint",
"types": "npx -p typescript tsc src/token.js --declaration --allowJs --emitDeclarationOnly --outDir types",
"types": "npx -p typescript tsc src/token.js --declaration --allowJs --emitDeclarationOnly --outDir types && rm types/constants.d.ts",
"prepare": "husky install"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion types/token.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export function token({ url, grant_type, client_id, client_secret, code, jwt_tok
client_secret?: string;
code?: string;
jwt_token?: string;
}): Promise<any>;
}): Promise<string | undefined>;

0 comments on commit bd20532

Please sign in to comment.