@stepzen/sdk
Advanced tools
Comparing version
@@ -1,2 +0,1 @@ | ||
export * from './init.js'; | ||
export * from './init-v2.js'; | ||
@@ -3,0 +2,0 @@ export * from './shared/types.js'; |
// Copyright IBM Corp. 2020, 2025 | ||
export * from './init.js'; | ||
export * from './init-v2.js'; | ||
@@ -4,0 +3,0 @@ export * from './shared/types.js'; |
@@ -1,4 +0,4 @@ | ||
import { SDKConfiguration, StepZenAccount, ZenCtlRequestHeaders } from './types.js'; | ||
export declare const getUserAgent: (sdkConfig: SDKConfiguration) => string; | ||
export declare const getRequestHeaders: (account: StepZenAccount, sdkConfig: SDKConfiguration) => ZenCtlRequestHeaders; | ||
import { SDKConfigurationV2, StepZenAccount, ZenCtlRequestHeaders } from './types.js'; | ||
export declare const getUserAgent: (sdkConfig: SDKConfigurationV2) => string; | ||
export declare const getRequestHeaders: (account: StepZenAccount, sdkConfig: SDKConfigurationV2) => ZenCtlRequestHeaders; | ||
//# sourceMappingURL=request.d.ts.map |
@@ -18,7 +18,2 @@ export interface StepZenAccount { | ||
} | ||
export type StepZenCredentials = { | ||
account: string; | ||
adminkey: string; | ||
apikey: string; | ||
}; | ||
export type UserCredentialsClientOptions = Pick<StepZenAccount, 'account' | 'adminkey'> & Partial<StepZenAccount>; | ||
@@ -25,0 +20,0 @@ export type AnonymousClientOptions = { |
{ | ||
"name": "@stepzen/sdk", | ||
"version": "0.49.0-experimental.3bed976", | ||
"version": "0.49.0-experimental.7f0fcac", | ||
"license": "MIT", | ||
@@ -25,4 +25,4 @@ "author": "Darren Waddell <darren@stepzen.com>", | ||
"dependencies": { | ||
"@stepzen/fetch": "0.49.0-experimental.3bed976", | ||
"@stepzen/transpiler": "0.49.0-experimental.3bed976", | ||
"@stepzen/fetch": "0.49.0-experimental.7f0fcac", | ||
"@stepzen/transpiler": "0.49.0-experimental.7f0fcac", | ||
"archiver": "^5.3.0", | ||
@@ -61,3 +61,3 @@ "debug": "^4.3.4", | ||
}, | ||
"gitHead": "3bed9764ce27a4dca65e9b2be59a147dd7bed2fc" | ||
"gitHead": "7f0fcacfab752e4f3b329b2dbf71c25c7af52803" | ||
} |
// Copyright IBM Corp. 2020, 2025 | ||
export * from './init.js' | ||
export * from './init-v2.js' | ||
export * from './shared/types.js' | ||
export {fetchGraphQLQuery} from './shared/graphql-client.js' |
@@ -7,3 +7,3 @@ // Copyright IBM Corp. 2020, 2025 | ||
import { | ||
SDKConfiguration, | ||
SDKConfigurationV2, | ||
StepZenAccount, | ||
@@ -20,3 +20,3 @@ ZenCtlRequestHeaders, | ||
export const getUserAgent = (sdkConfig: SDKConfiguration): string => { | ||
export const getUserAgent = (sdkConfig: SDKConfigurationV2): string => { | ||
return `${sdkConfig.appName} stepzen-sdk/${version} (${platform}; ${arch}; node-${process.version})` | ||
@@ -27,3 +27,3 @@ } | ||
account: StepZenAccount, | ||
sdkConfig: SDKConfiguration, | ||
sdkConfig: SDKConfigurationV2, | ||
): ZenCtlRequestHeaders => { | ||
@@ -30,0 +30,0 @@ return { |
@@ -22,8 +22,2 @@ // Copyright IBM Corp. 2020, 2025 | ||
export type StepZenCredentials = { | ||
account: string | ||
adminkey: string | ||
apikey: string | ||
} | ||
export type UserCredentialsClientOptions = Pick< | ||
@@ -30,0 +24,0 @@ StepZenAccount, |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2
-66.67%119826
-28.21%83
-32.52%2590
-26.77%+ Added
+ Added
- Removed
- Removed