@wormhole-foundation/connect-sdk-solana
Advanced tools
Comparing version 0.4.2-beta.1 to 0.4.2
export * as utils from './utils'; | ||
export * as anchor from './anchor'; | ||
export declare function camelCase(str: string): string; | ||
export declare function upperFirst(str: string): string; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -26,5 +26,19 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.anchor = exports.utils = void 0; | ||
exports.upperFirst = exports.camelCase = exports.anchor = exports.utils = void 0; | ||
exports.utils = __importStar(require("./utils")); | ||
exports.anchor = __importStar(require("./anchor")); | ||
// camel case a string (from https://stackoverflow.com/a/2970667) | ||
function camelCase(str) { | ||
return (str | ||
.replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) { | ||
return index === 0 ? word.toLowerCase() : word.toUpperCase(); | ||
}) | ||
// replace any spaces, hyphens, or underscores with an empty string | ||
.replace(/[\s\-_]+/g, '')); | ||
} | ||
exports.camelCase = camelCase; | ||
function upperFirst(str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
} | ||
exports.upperFirst = upperFirst; | ||
//# sourceMappingURL=index.js.map |
export * as utils from './utils'; | ||
export * as anchor from './anchor'; | ||
export declare function camelCase(str: string): string; | ||
export declare function upperFirst(str: string): string; | ||
//# sourceMappingURL=index.d.ts.map |
export * as utils from './utils'; | ||
export * as anchor from './anchor'; | ||
// camel case a string (from https://stackoverflow.com/a/2970667) | ||
export function camelCase(str) { | ||
return (str | ||
.replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) { | ||
return index === 0 ? word.toLowerCase() : word.toUpperCase(); | ||
}) | ||
// replace any spaces, hyphens, or underscores with an empty string | ||
.replace(/[\s\-_]+/g, '')); | ||
} | ||
export function upperFirst(str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@wormhole-foundation/connect-sdk-solana", | ||
"version": "0.4.2-beta.1", | ||
"version": "0.4.2", | ||
"repository": { | ||
@@ -49,3 +49,3 @@ "type": "git", | ||
"dependencies": { | ||
"@wormhole-foundation/connect-sdk": "^0.4.2-beta.1", | ||
"@wormhole-foundation/connect-sdk": "^0.4.2", | ||
"@coral-xyz/borsh": "0.2.6", | ||
@@ -55,5 +55,4 @@ "@project-serum/anchor": "0.25.0", | ||
"@solana/spl-token": "0.3.9", | ||
"@solana/web3.js": "1.89.1", | ||
"lodash": "^4.17.21" | ||
"@solana/web3.js": "1.89.1" | ||
} | ||
} |
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
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
435814
6
3613
- Removedlodash@^4.17.21
- Removedlodash@4.17.21(transitive)