@smithy/util-defaults-mode-browser 1.0.1 → 1.0.3

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,12 @@
1
+ import { DefaultsMode } from "@smithy/smithy-client";
2
+ import { Provider } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const DEFAULTS_MODE_OPTIONS: string[];
7
+ /**
8
+ * @internal
9
+ */
10
+ export interface ResolveDefaultsModeConfigOptions {
11
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export * from "./resolveDefaultsModeConfig";
@@ -0,0 +1,17 @@
1
+ import { DefaultsMode, ResolvedDefaultsMode } from "@smithy/smithy-client";
2
+ import { Provider } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface ResolveDefaultsModeConfigOptions {
7
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
8
+ }
9
+ /**
10
+ * Validate the defaultsMode configuration. If the value is set to "auto", it
11
+ * resolves the value to "mobile" if the app is running in a mobile browser,
12
+ * otherwise it resolves to "standard".
13
+ *
14
+ * @default "legacy"
15
+ * @internal
16
+ */
17
+ export declare const resolveDefaultsModeConfig: ({ defaultsMode, }?: ResolveDefaultsModeConfigOptions) => Provider<ResolvedDefaultsMode>;
@@ -0,0 +1,16 @@
1
+ import { DefaultsMode, ResolvedDefaultsMode } from "@smithy/smithy-client";
2
+ import { Provider } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface ResolveDefaultsModeConfigOptions {
7
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
8
+ }
9
+ /**
10
+ * Validate the defaultsMode configuration. If the value is set to "auto", it
11
+ * resolves the value to "mobile".
12
+ *
13
+ * @default "legacy"
14
+ * @internal
15
+ */
16
+ export declare const resolveDefaultsModeConfig: ({ defaultsMode, }?: ResolveDefaultsModeConfigOptions) => Provider<ResolvedDefaultsMode>;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
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/property-provider": "^1.0.1",
26
- "@smithy/types": "^1.1.0",
25
+ "@smithy/property-provider": "^1.1.0",
26
+ "@smithy/types": "^2.0.0",
27
27
  "bowser": "^2.11.0",
28
28
  "tslib": "^2.5.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@smithy/smithy-client": "^1.0.1",
31
+ "@smithy/smithy-client": "^1.0.5",
32
32
  "@tsconfig/recommended": "1.0.1",
33
33
  "@types/node": "^14.14.31",
34
34
  "concurrently": "7.0.0",