@solana/actions
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -8,3 +8,3 @@ "use strict"; | ||
*/ | ||
function actionHeaders({ headers, chainId, actionVersion, }) { | ||
function actionHeaders({ headers, chainId, actionVersion, } = {}) { | ||
if (chainId) { | ||
@@ -11,0 +11,0 @@ headers = Object.assign({}, headers || {}, { |
@@ -5,3 +5,3 @@ import { ACTIONS_CORS_HEADERS, BLOCKCHAIN_IDS } from "./constants.js"; | ||
*/ | ||
export function actionHeaders({ headers, chainId, actionVersion, }) { | ||
export function actionHeaders({ headers, chainId, actionVersion, } = {}) { | ||
if (chainId) { | ||
@@ -8,0 +8,0 @@ headers = Object.assign({}, headers || {}, { |
@@ -10,3 +10,3 @@ import { ACTIONS_CORS_HEADERS, BLOCKCHAIN_IDS } from "./constants.js"; | ||
*/ | ||
export declare function actionHeaders({ headers, chainId, actionVersion, }: HeaderHelperArgs): Record<string, string>; | ||
export declare function actionHeaders({ headers, chainId, actionVersion, }?: HeaderHelperArgs): Record<string, string>; | ||
/** | ||
@@ -13,0 +13,0 @@ * Middleware to enable proper CORS headers for Action APIs |
{ | ||
"name": "@solana/actions", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
@@ -38,2 +38,3 @@ "repository": "https://github.com/solana-developers/solana-actions", | ||
"build": "tsc --build --verbose tsconfig.all.json", | ||
"build:release": "npm run clean && npm run build", | ||
"postbuild": "shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json", | ||
@@ -49,4 +50,3 @@ "watch": "tsc --build --verbose --watch tsconfig.all.json", | ||
"version": "changeset version && git add -A && git commit -m \"chore: version\"", | ||
"release": "npm run clean && npm run build", | ||
"publish": "npm run release && changeset publish && git add -A && git push --follow-tags && npm run deploy:docs" | ||
"publish": "npm run build:release && changeset publish && git add -A && git push --follow-tags && npm run deploy:docs" | ||
}, | ||
@@ -53,0 +53,0 @@ "dependencies": { |
@@ -16,3 +16,3 @@ import { ACTIONS_CORS_HEADERS, BLOCKCHAIN_IDS } from "./constants.js"; | ||
actionVersion, | ||
}: HeaderHelperArgs) { | ||
}: HeaderHelperArgs = {}) { | ||
if (chainId) { | ||
@@ -19,0 +19,0 @@ headers = Object.assign({}, headers || {}, { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
153468