@smithy/hash-stream-node 4.2.11 → 4.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,10 +3,15 @@
3
3
  [![NPM version](https://img.shields.io/npm/v/@smithy/hash-stream-node/latest.svg)](https://www.npmjs.com/package/@smithy/hash-stream-node)
4
4
  [![NPM downloads](https://img.shields.io/npm/dm/@smithy/hash-stream-node.svg)](https://www.npmjs.com/package/@smithy/hash-stream-node)
5
5
 
6
- A utility for calculating the hash of Node.JS readable streams.
6
+ ### :warning: Internal API :warning:
7
7
 
8
- > An internal package
8
+ > This is an internal package.
9
+ > That means this is used as a dependency for other, public packages, but
10
+ > should not be taken directly as a dependency in your application's `package.json`.
9
11
 
10
- ## Usage
12
+ > If you are updating the version of this package, for example to bring in a
13
+ > bug-fix, you should do so by updating your application lockfile with
14
+ > e.g. `npm up @scope/package` or equivalent command in another
15
+ > package manager, rather than taking a direct dependency.
11
16
 
12
- You probably shouldn't, at least directly.
17
+ ---
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@smithy/hash-stream-node",
3
- "version": "4.2.11",
3
+ "version": "4.2.13",
4
4
  "scripts": {
5
- "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
- "build:cjs": "node ../../scripts/inline hash-stream-node",
7
- "build:es": "yarn g:tsc -p tsconfig.es.json",
5
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
6
+ "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline hash-stream-node",
8
7
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
8
  "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
- "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
9
  "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
- "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
10
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
11
+ "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
12
+ "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
14
13
  "test": "yarn g:vitest run",
15
14
  "test:watch": "yarn g:vitest watch"
16
15
  },
@@ -24,7 +23,7 @@
24
23
  "license": "Apache-2.0",
25
24
  "sideEffects": false,
26
25
  "dependencies": {
27
- "@smithy/types": "^4.13.0",
26
+ "@smithy/types": "^4.14.0",
28
27
  "@smithy/util-utf8": "^4.2.2",
29
28
  "tslib": "^2.6.2"
30
29
  },
@@ -1,11 +0,0 @@
1
- import { Checksum, Hash } from "@smithy/types";
2
- import { WritableOptions } from "stream";
3
- import { Writable } from "stream";
4
- /**
5
- * @internal
6
- */
7
- export declare class HashCalculator extends Writable {
8
- readonly hash: Checksum | Hash;
9
- constructor(hash: Checksum | Hash, options?: WritableOptions);
10
- _write(chunk: Buffer, encoding: string, callback: (err?: Error) => void): void;
11
- }
@@ -1,6 +0,0 @@
1
- import { StreamHasher } from "@smithy/types";
2
- import { Readable } from "stream";
3
- /**
4
- * @internal
5
- */
6
- export declare const fileStreamHasher: StreamHasher<Readable>;
@@ -1,8 +0,0 @@
1
- /**
2
- * @internal
3
- */
4
- export * from "./fileStreamHasher";
5
- /**
6
- * @internal
7
- */
8
- export * from "./readableStreamHasher";
@@ -1,6 +0,0 @@
1
- import { StreamHasher } from "@smithy/types";
2
- import { Readable } from "stream";
3
- /**
4
- * @internal
5
- */
6
- export declare const readableStreamHasher: StreamHasher<Readable>;