Socket
Socket
Sign inDemoInstall

@solana/actions

Package Overview
Dependencies
Maintainers
14
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/actions - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

2

lib/cjs/utils.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc