@circleci/circleci-config-sdk
Advanced tools
Comparing version 0.11.1 to 0.12.0
@@ -21,3 +21,3 @@ import { GenerableType } from '../../../Config/exports/Mapping'; | ||
serviceImages: DockerImage[]; | ||
constructor(image: string, resource_class?: DockerResourceClass, properties?: Exclude<DockerImageShape, 'image'>, serviceImages?: DockerImage[]); | ||
constructor(image: string, resource_class?: DockerResourceClass, properties?: Omit<DockerImageShape, 'image'>, serviceImages?: DockerImage[]); | ||
/** | ||
@@ -24,0 +24,0 @@ * Generate Docker Executor schema. |
import { StringParameter } from '../../Parameters/types'; | ||
import { DockerImageShape } from '../exports/DockerImage'; | ||
import { DockerImageShape, DockerImage, DockerAuth, DockerAuthAWS } from '../exports/DockerImage'; | ||
import { AnyResourceClassBase } from './Executor.types'; | ||
@@ -17,2 +17,3 @@ /** | ||
export declare type DockerResourceClass = AnyResourceClassBase; | ||
export { DockerImageShape, DockerImage, DockerAuth, DockerAuthAWS }; | ||
//# sourceMappingURL=DockerExecutor.types.d.ts.map |
@@ -103,3 +103,10 @@ import * as YAML from 'yaml'; | ||
get generableType(): GenerableType; | ||
/** | ||
* Agnostic method to save a config file to disk via Node or the Browser. | ||
* Note: If you are accessing this method from the browser, it must be triggered by a user action. | ||
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker#security} | ||
* @param path - The path to write the config to. ONLY USED IN NODE.JS | ||
*/ | ||
writeFile(path?: string): Promise<void>; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@circleci/circleci-config-sdk", | ||
"version": "v0.11.1", | ||
"version": "v0.12.0", | ||
"description": "An SDK for building CircleCI Configuration files with JavaScript.", | ||
@@ -32,5 +32,6 @@ "main": "dist/index.js", | ||
"@types/jest": "^27.5.2", | ||
"@types/node": "^14.18.21", | ||
"@types/node": "^14.18.33", | ||
"@types/webpack": "^5.0.0", | ||
"@types/webpack-node-externals": "^2.5.3", | ||
"@types/wicg-file-system-access": "^2020.9.5", | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
@@ -56,2 +57,3 @@ "@typescript-eslint/parser": "^5.33.0", | ||
"dependencies": { | ||
"browser-or-node": "^2.0.0", | ||
"yaml": "2.1.1" | ||
@@ -58,0 +60,0 @@ }, |
@@ -107,2 +107,5 @@ # CircleCI Config SDK | ||
const MyYamlConfig = myConfig.stringify(); | ||
// Save the config to a file in Node.js or the browser. Note, use in the browser requires user interaction. | ||
myConfig.writeFile('config.yml'); | ||
``` | ||
@@ -109,0 +112,0 @@ |
Sorry, the diff of this file is too big to display
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
879848
2780
165
2
25
2
6
+ Addedbrowser-or-node@^2.0.0
+ Addedbrowser-or-node@2.1.1(transitive)