@smithy/hash-stream-node 1.0.0 → 1.0.2

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.
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import { Checksum, Hash } from "@smithy/types";
3
+ import { Writable, WritableOptions } 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
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="node" />
2
+ import { StreamHasher } from "@smithy/types";
3
+ import { Readable } from "stream";
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare const fileStreamHasher: StreamHasher<Readable>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export * from "./fileStreamHasher";
5
+ /**
6
+ * @internal
7
+ */
8
+ export * from "./readableStreamHasher";
@@ -0,0 +1,7 @@
1
+ /// <reference types="node" />
2
+ import { StreamHasher } from "@smithy/types";
3
+ import { Readable } from "stream";
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare const readableStreamHasher: StreamHasher<Readable>;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@smithy/hash-stream-node",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "scripts": {
5
- "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
5
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
7
7
  "build:es": "tsc -p tsconfig.es.json",
8
8
  "build:types": "tsc -p tsconfig.types.json",
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "workspace:^",
26
- "@smithy/util-utf8": "workspace:^",
25
+ "@smithy/types": "^1.1.1",
26
+ "@smithy/util-utf8": "^1.0.2",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@aws-crypto/sha256-js": "3.0.0",
31
- "@smithy/util-hex-encoding": "workspace:^",
31
+ "@smithy/util-hex-encoding": "^1.0.2",
32
32
  "@tsconfig/recommended": "1.0.1",
33
33
  "@types/node": "^14.14.31",
34
34
  "concurrently": "7.0.0",
@@ -59,5 +59,8 @@
59
59
  },
60
60
  "typedoc": {
61
61
  "entryPoint": "src/index.ts"
62
+ },
63
+ "publishConfig": {
64
+ "directory": ".release/package"
62
65
  }
63
- }
66
+ }