@smithy/shared-ini-file-loader 4.0.5 → 4.1.1

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/dist-cjs/index.js CHANGED
@@ -19,8 +19,8 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  CONFIG_PREFIX_SEPARATOR: () => CONFIG_PREFIX_SEPARATOR,
25
25
  DEFAULT_PROFILE: () => DEFAULT_PROFILE,
26
26
  ENV_PROFILE: () => ENV_PROFILE,
@@ -29,8 +29,8 @@ __export(src_exports, {
29
29
  loadSsoSessionData: () => loadSsoSessionData,
30
30
  parseKnownFiles: () => parseKnownFiles
31
31
  });
32
- module.exports = __toCommonJS(src_exports);
33
- __reExport(src_exports, require("././getHomeDir"), module.exports);
32
+ module.exports = __toCommonJS(index_exports);
33
+ __reExport(index_exports, require("././getHomeDir"), module.exports);
34
34
 
35
35
  // src/getProfileName.ts
36
36
  var ENV_PROFILE = "AWS_PROFILE";
@@ -38,8 +38,8 @@ var DEFAULT_PROFILE = "default";
38
38
  var getProfileName = /* @__PURE__ */ __name((init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE, "getProfileName");
39
39
 
40
40
  // src/index.ts
41
- __reExport(src_exports, require("././getSSOTokenFilepath"), module.exports);
42
- __reExport(src_exports, require("././getSSOTokenFromFile"), module.exports);
41
+ __reExport(index_exports, require("././getSSOTokenFilepath"), module.exports);
42
+ __reExport(index_exports, require("././getSSOTokenFromFile"), module.exports);
43
43
 
44
44
  // src/loadSharedConfigFiles.ts
45
45
 
@@ -1,4 +1,4 @@
1
- import { ParsedIniData } from "@smithy/types";
1
+ import type { ParsedIniData } from "@smithy/types";
2
2
  /**
3
3
  * Returns the config data from parsed ini data.
4
4
  * * Returns data for `default`
@@ -1,4 +1,4 @@
1
- import { ParsedIniData } from "@smithy/types";
1
+ import type { ParsedIniData } from "@smithy/types";
2
2
  /**
3
3
  * Returns the sso-session data from parsed ini data by reading
4
4
  * ssoSessionName after sso-session prefix including/excluding quotes
@@ -1,4 +1,4 @@
1
- import { Logger, SharedConfigFiles } from "@smithy/types";
1
+ import type { Logger, SharedConfigFiles } from "@smithy/types";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ParsedIniData } from "@smithy/types";
1
+ import type { ParsedIniData } from "@smithy/types";
2
2
  /**
3
3
  * Subset of {@link SharedConfigInit}.
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { ParsedIniData } from "@smithy/types";
1
+ import type { ParsedIniData } from "@smithy/types";
2
2
  /**
3
3
  * Merge multiple profile config files such that settings each file are kept together
4
4
  *
@@ -1,2 +1,2 @@
1
- import { ParsedIniData } from "@smithy/types";
1
+ import type { ParsedIniData } from "@smithy/types";
2
2
  export declare const parseIni: (iniData: string) => ParsedIniData;
@@ -1,5 +1,5 @@
1
- import { ParsedIniData } from "@smithy/types";
2
- import { SharedConfigInit } from "./loadSharedConfigFiles";
1
+ import type { ParsedIniData } from "@smithy/types";
2
+ import type { SharedConfigInit } from "./loadSharedConfigFiles";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,4 +1,4 @@
1
- import { ParsedIniData as __ParsedIniData, Profile as __Profile, SharedConfigFiles as __SharedConfigFiles } from "@smithy/types";
1
+ import type { ParsedIniData as __ParsedIniData, Profile as __Profile, SharedConfigFiles as __SharedConfigFiles } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  * @deprecated Use Profile from "\@smithy/types" instead
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "4.0.5",
3
+ "version": "4.1.1",
4
4
  "dependencies": {
5
- "@smithy/types": "^4.3.2",
5
+ "@smithy/types": "^4.5.0",
6
6
  "tslib": "^2.6.2"
7
7
  },
8
8
  "devDependencies": {
@@ -31,6 +31,7 @@
31
31
  "url": "https://aws.amazon.com/javascript/"
32
32
  },
33
33
  "license": "Apache-2.0",
34
+ "sideEffects": false,
34
35
  "main": "./dist-cjs/index.js",
35
36
  "module": "./dist-es/index.js",
36
37
  "types": "./dist-types/index.d.ts",