@aws-sdk/util-locate-window 3.310.0 → 3.495.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +37 -11
  2. package/package.json +2 -6
package/dist-cjs/index.js CHANGED
@@ -1,13 +1,39 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.locateWindow = void 0;
3
- const fallbackWindow = {};
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ locateWindow: () => locateWindow
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+ var fallbackWindow = {};
4
27
  function locateWindow() {
5
- if (typeof window !== "undefined") {
6
- return window;
7
- }
8
- else if (typeof self !== "undefined") {
9
- return self;
10
- }
11
- return fallbackWindow;
28
+ if (typeof window !== "undefined") {
29
+ return window;
30
+ } else if (typeof self !== "undefined") {
31
+ return self;
32
+ }
33
+ return fallbackWindow;
12
34
  }
13
- exports.locateWindow = locateWindow;
35
+ __name(locateWindow, "locateWindow");
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ locateWindow
39
+ });
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-locate-window",
3
- "version": "3.310.0",
3
+ "version": "3.495.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
- "build:cjs": "tsc -p tsconfig.cjs.json",
6
+ "build:cjs": "node ../../scripts/compilation/inline util-locate-window",
7
7
  "build:es": "tsc -p tsconfig.es.json",
8
8
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
9
9
  "build:types": "tsc -p tsconfig.types.json",
@@ -25,7 +25,6 @@
25
25
  "concurrently": "7.0.0",
26
26
  "downlevel-dts": "0.10.1",
27
27
  "rimraf": "3.0.2",
28
- "typedoc": "0.23.23",
29
28
  "typescript": "~4.9.5"
30
29
  },
31
30
  "main": "./dist-cjs/index.js",
@@ -49,8 +48,5 @@
49
48
  "type": "git",
50
49
  "url": "https://github.com/aws/aws-sdk-js-v3.git",
51
50
  "directory": "packages/util-locate-window"
52
- },
53
- "typedoc": {
54
- "entryPoint": "src/index.ts"
55
51
  }
56
52
  }