@smithy/core 3.3.3 → 3.4.0

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,6 @@
1
+ /**
2
+ * @public
3
+ * @param part - header list element
4
+ * @returns quoted string if part contains delimiter.
5
+ */
6
+ export declare function quoteHeader(part: string): string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * Given an input string, splits based on the delimiter after a given
5
+ * number of delimiters has been encountered.
6
+ *
7
+ * @param value - The input string to split.
8
+ * @param delimiter - The delimiter to split on.
9
+ * @param numDelimiters - The number of delimiters to have encountered to split.
10
+ */
11
+ export declare function splitEvery(value: string, delimiter: string, numDelimiters: number): Array<string>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @param value - header string value.
3
+ * @returns value split by commas that aren't in quotes.
4
+ */
5
+ export declare const splitHeader: (value: string) => string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.3.3",
3
+ "version": "3.4.0",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -11,6 +11,7 @@
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "npx eslint -c ../../.eslintrc.js \"src/**/*.ts\" --fix && node ./scripts/lint",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
+ "extract:docs": "api-extractor run --local",
14
15
  "test": "yarn g:vitest run",
15
16
  "test:cbor:perf": "node ./scripts/cbor-perf.mjs",
16
17
  "test:watch": "yarn g:vitest watch"
@@ -61,12 +62,12 @@
61
62
  },
62
63
  "license": "Apache-2.0",
63
64
  "dependencies": {
64
- "@smithy/middleware-serde": "^4.0.5",
65
- "@smithy/protocol-http": "^5.1.0",
66
- "@smithy/types": "^4.2.0",
65
+ "@smithy/middleware-serde": "^4.0.6",
66
+ "@smithy/protocol-http": "^5.1.1",
67
+ "@smithy/types": "^4.3.0",
67
68
  "@smithy/util-body-length-browser": "^4.0.0",
68
- "@smithy/util-middleware": "^4.0.2",
69
- "@smithy/util-stream": "^4.2.0",
69
+ "@smithy/util-middleware": "^4.0.3",
70
+ "@smithy/util-stream": "^4.2.1",
70
71
  "@smithy/util-utf8": "^4.0.0",
71
72
  "tslib": "^2.6.2"
72
73
  },