@awboost/cfnassets
Advanced tools
Comparing version 0.5.6 to 0.6.0
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { MergedRollupOptions } from 'rollup'; | ||
@@ -3,0 +3,0 @@ import { BatchWarnings } from 'rollup/loadConfigFile'; |
@@ -7,3 +7,3 @@ import { createReadStream } from 'fs'; | ||
const work = [resolve(source)]; | ||
const ig = ignore().add(ignorePaths || []); | ||
const ig = ignore.default().add(ignorePaths || []); | ||
while (work.length) { | ||
@@ -10,0 +10,0 @@ const curr = work.pop(); |
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import stream from 'stream'; | ||
@@ -3,0 +3,0 @@ import { ZipAssetEntry } from './ZipAssetEntry.js'; |
@@ -1,4 +0,5 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { Readable } from 'stream'; | ||
export declare type EntryContent = Readable | string | Buffer; | ||
export type EntryContent = Readable | string | Buffer; | ||
export interface ZipAssetEntry { | ||
@@ -5,0 +6,0 @@ archivePath: string; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
export declare function hash(data: Iterable<string | Buffer>): string; | ||
//# sourceMappingURL=hash.d.ts.map |
@@ -1,2 +0,4 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { BinaryToTextEncoding, Hash } from 'crypto'; | ||
@@ -3,0 +5,0 @@ import { Transform, TransformCallback, TransformOptions } from 'stream'; |
@@ -1,2 +0,3 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import stream from 'stream'; | ||
@@ -3,0 +4,0 @@ export declare class ProgressStream extends stream.Transform { |
@@ -1,4 +0,4 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import fs from 'fs'; | ||
export declare function tryStat(path: string): Promise<fs.Stats | undefined>; | ||
//# sourceMappingURL=tryStat.d.ts.map |
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { Readable } from 'stream'; | ||
@@ -3,0 +3,0 @@ export interface AssetOutput { |
@@ -1,2 +0,3 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { Readable } from 'stream'; | ||
@@ -3,0 +4,0 @@ export interface AddAssetOpts { |
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { Readable } from 'stream'; | ||
@@ -3,0 +3,0 @@ import { TypedEmitter } from 'tiny-typed-emitter'; |
{ | ||
"name": "@awboost/cfnassets", | ||
"version": "0.5.6", | ||
"version": "0.6.0", | ||
"type": "module", | ||
@@ -19,7 +19,7 @@ "repository": { | ||
}, | ||
"main": "./lib/cjs/index.js", | ||
"module": "./lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"exports": { | ||
".": "./lib/index.js" | ||
".": { | ||
"types": "./lib/index.d.ts", | ||
"default": "./lib/index.js" | ||
} | ||
}, | ||
@@ -38,33 +38,24 @@ "bin": { | ||
"scripts": { | ||
"build": "npm run clean && npm run index && npm run compile && npm run compile:cjs && npm run lint && npm run docs", | ||
"build": "npm run clean && npm run index && npm run compile && npm run lint", | ||
"clean": "rm -rf docs/ lib/ *.tsbuildinfo", | ||
"compile": "npm run index && tsc", | ||
"compile:cjs": "tsc -p tsconfig.cjs.json", | ||
"dev:docs": "concurrently --kill-others npm:watch:docs npm:serve:docs", | ||
"docs": "typedoc", | ||
"index": "node makeIndex.js src/", | ||
"lint": "eslint src/ --ext=ts", | ||
"serve:docs": "http-server docs/ -o", | ||
"watch:compile": "tsc -w", | ||
"watch:docs": "onchange src/**/*.ts -i -d 1000 -- npm run docs" | ||
"watch:compile": "tsc -w" | ||
}, | ||
"devDependencies": { | ||
"@types/archiver": "^5.3.1", | ||
"@types/node": "^17.0.34", | ||
"@typescript-eslint/eslint-plugin": "^5.11.0", | ||
"@typescript-eslint/parser": "^5.11.0", | ||
"concurrently": "^5.3.0", | ||
"eslint": "^8.9.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"http-server": "^0.12.3", | ||
"onchange": "^7.0.2", | ||
"prettier": "^2.1.2", | ||
"typedoc": "^0.22.11", | ||
"typescript": "^4.6.4" | ||
"@types/node": "^18.18.13", | ||
"@typescript-eslint/eslint-plugin": "^6.12.0", | ||
"@typescript-eslint/parser": "^6.12.0", | ||
"eslint": "^8.54.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"prettier": "^3.1.0", | ||
"typescript": "~5.2" | ||
}, | ||
"dependencies": { | ||
"@awboost/cfntemplate": "^0.6.0", | ||
"@fmtk/decoders": "^0.5.2", | ||
"@awboost/cfntemplate": "^0.5.2", | ||
"archiver": "^5.3.1", | ||
@@ -71,0 +62,0 @@ "chalk": "^5.0.1", |
@@ -36,9 +36,1 @@ # @awboost/cfnassets | ||
``` | ||
## Work In Progress 🚧 | ||
This project has been hacked off the codebase of another project, and is currently missing documentation. | ||
![We Can Do It!](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/We_Can_Do_It%21_NARA_535413_-_Restoration_2.jpg/800px-We_Can_Do_It%21_NARA_535413_-_Restoration_2.jpg) | ||
Help wanted 😁 |
@@ -19,3 +19,3 @@ import { createReadStream } from 'fs'; | ||
const work = [resolve(source)]; | ||
const ig = ignore().add(ignorePaths || []); | ||
const ig = ignore.default().add(ignorePaths || []); | ||
@@ -22,0 +22,0 @@ while (work.length) { |
@@ -5,5 +5,8 @@ import { AssetBase } from './AssetBase.js'; | ||
export class CustomAsset extends AssetBase { | ||
constructor(name: string, public readonly generate: AssetGenerator) { | ||
constructor( | ||
name: string, | ||
public readonly generate: AssetGenerator, | ||
) { | ||
super(name); | ||
} | ||
} |
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
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
10
15
1
116089
178
1937
36
+ Added@awboost/cfntemplate@0.6.0(transitive)
+ Added@awboost/cfntypes@0.100.74(transitive)
- Removed@awboost/cfntemplate@0.5.2(transitive)
- Removed@awboost/cfntypes@0.44.1(transitive)
Updated@awboost/cfntemplate@^0.6.0