@aws-sdk/util-locate-window 3.29.0 → 3.36.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/util-locate-window
20
+
21
+
22
+
23
+
24
+
25
+ # [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
26
+
27
+
28
+ ### Features
29
+
30
+ * **non-clients:** remove comments from transpiled JS files ([#2813](https://github.com/aws/aws-sdk-js-v3/issues/2813)) ([e6fc7f3](https://github.com/aws/aws-sdk-js-v3/commit/e6fc7f3e0fa74785590ac19e7ed143c916bb9b6e))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
37
+
38
+ **Note:** Version bump only for package @aws-sdk/util-locate-window
39
+
40
+
41
+
42
+
43
+
6
44
  # [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)
7
45
 
8
46
  **Note:** Version bump only for package @aws-sdk/util-locate-window
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.locateWindow = void 0;
3
+ const fallbackWindow = {};
4
+ function locateWindow() {
5
+ if (typeof window !== "undefined") {
6
+ return window;
7
+ }
8
+ else if (typeof self !== "undefined") {
9
+ return self;
10
+ }
11
+ return fallbackWindow;
12
+ }
13
+ exports.locateWindow = locateWindow;
@@ -0,0 +1,10 @@
1
+ var fallbackWindow = {};
2
+ export function locateWindow() {
3
+ if (typeof window !== "undefined") {
4
+ return window;
5
+ }
6
+ else if (typeof self !== "undefined") {
7
+ return self;
8
+ }
9
+ return fallbackWindow;
10
+ }
File without changes
File without changes
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-locate-window",
3
- "version": "3.29.0",
3
+ "version": "3.36.0",
4
4
  "scripts": {
5
+ "build": "yarn build:cjs && yarn build:es && yarn build:types",
5
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
6
7
  "build:es": "tsc -p tsconfig.es.json",
7
- "build": "yarn build:es && yarn build:cjs",
8
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
8
+ "build:types": "tsc -p tsconfig.types.json",
9
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
9
10
  "test": "jest"
10
11
  },
11
12
  "author": {
@@ -20,21 +21,24 @@
20
21
  "@types/jest": "^26.0.4",
21
22
  "@types/node": "^10.0.0",
22
23
  "jest": "^26.1.0",
23
- "typescript": "~4.4.2"
24
+ "typescript": "~4.3.5"
24
25
  },
25
- "main": "./dist/cjs/index.js",
26
- "module": "./dist/es/index.js",
27
- "types": "./dist/types/index.d.ts",
26
+ "main": "./dist-cjs/index.js",
27
+ "module": "./dist-es/index.js",
28
+ "types": "./dist-types/index.d.ts",
28
29
  "engines": {
29
30
  "node": ">= 10.0.0"
30
31
  },
31
32
  "typesVersions": {
32
33
  "<4.0": {
33
- "dist/types/*": [
34
- "dist/types/ts3.4/*"
34
+ "dist-types/*": [
35
+ "dist-types/ts3.4/*"
35
36
  ]
36
37
  }
37
38
  },
39
+ "files": [
40
+ "dist-*"
41
+ ],
38
42
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-locate-window",
39
43
  "repository": {
40
44
  "type": "git",
package/dist/cjs/index.js DELETED
@@ -1,19 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.locateWindow = void 0;
3
- const fallbackWindow = {};
4
- /**
5
- * Locates the global scope for a browser or browser-like environment. If
6
- * neither `window` nor `self` is defined by the environment, the same object
7
- * will be returned on each invocation.
8
- */
9
- function locateWindow() {
10
- if (typeof window !== "undefined") {
11
- return window;
12
- }
13
- else if (typeof self !== "undefined") {
14
- return self;
15
- }
16
- return fallbackWindow;
17
- }
18
- exports.locateWindow = locateWindow;
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxNQUFNLGNBQWMsR0FBRyxFQUFZLENBQUM7QUFFcEM7Ozs7R0FJRztBQUNILFNBQWdCLFlBQVk7SUFDMUIsSUFBSSxPQUFPLE1BQU0sS0FBSyxXQUFXLEVBQUU7UUFDakMsT0FBTyxNQUFNLENBQUM7S0FDZjtTQUFNLElBQUksT0FBTyxJQUFJLEtBQUssV0FBVyxFQUFFO1FBQ3RDLE9BQU8sSUFBSSxDQUFDO0tBQ2I7SUFFRCxPQUFPLGNBQWMsQ0FBQztBQUN4QixDQUFDO0FBUkQsb0NBUUMiLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBmYWxsYmFja1dpbmRvdyA9IHt9IGFzIFdpbmRvdztcblxuLyoqXG4gKiBMb2NhdGVzIHRoZSBnbG9iYWwgc2NvcGUgZm9yIGEgYnJvd3NlciBvciBicm93c2VyLWxpa2UgZW52aXJvbm1lbnQuIElmXG4gKiBuZWl0aGVyIGB3aW5kb3dgIG5vciBgc2VsZmAgaXMgZGVmaW5lZCBieSB0aGUgZW52aXJvbm1lbnQsIHRoZSBzYW1lIG9iamVjdFxuICogd2lsbCBiZSByZXR1cm5lZCBvbiBlYWNoIGludm9jYXRpb24uXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBsb2NhdGVXaW5kb3coKTogV2luZG93IHtcbiAgaWYgKHR5cGVvZiB3aW5kb3cgIT09IFwidW5kZWZpbmVkXCIpIHtcbiAgICByZXR1cm4gd2luZG93O1xuICB9IGVsc2UgaWYgKHR5cGVvZiBzZWxmICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgcmV0dXJuIHNlbGY7XG4gIH1cblxuICByZXR1cm4gZmFsbGJhY2tXaW5kb3c7XG59XG4iXX0=
package/dist/es/index.js DELETED
@@ -1,16 +0,0 @@
1
- var fallbackWindow = {};
2
- /**
3
- * Locates the global scope for a browser or browser-like environment. If
4
- * neither `window` nor `self` is defined by the environment, the same object
5
- * will be returned on each invocation.
6
- */
7
- export function locateWindow() {
8
- if (typeof window !== "undefined") {
9
- return window;
10
- }
11
- else if (typeof self !== "undefined") {
12
- return self;
13
- }
14
- return fallbackWindow;
15
- }
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBTSxjQUFjLEdBQUcsRUFBWSxDQUFDO0FBRXBDOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsWUFBWTtJQUMxQixJQUFJLE9BQU8sTUFBTSxLQUFLLFdBQVcsRUFBRTtRQUNqQyxPQUFPLE1BQU0sQ0FBQztLQUNmO1NBQU0sSUFBSSxPQUFPLElBQUksS0FBSyxXQUFXLEVBQUU7UUFDdEMsT0FBTyxJQUFJLENBQUM7S0FDYjtJQUVELE9BQU8sY0FBYyxDQUFDO0FBQ3hCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBmYWxsYmFja1dpbmRvdyA9IHt9IGFzIFdpbmRvdztcblxuLyoqXG4gKiBMb2NhdGVzIHRoZSBnbG9iYWwgc2NvcGUgZm9yIGEgYnJvd3NlciBvciBicm93c2VyLWxpa2UgZW52aXJvbm1lbnQuIElmXG4gKiBuZWl0aGVyIGB3aW5kb3dgIG5vciBgc2VsZmAgaXMgZGVmaW5lZCBieSB0aGUgZW52aXJvbm1lbnQsIHRoZSBzYW1lIG9iamVjdFxuICogd2lsbCBiZSByZXR1cm5lZCBvbiBlYWNoIGludm9jYXRpb24uXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBsb2NhdGVXaW5kb3coKTogV2luZG93IHtcbiAgaWYgKHR5cGVvZiB3aW5kb3cgIT09IFwidW5kZWZpbmVkXCIpIHtcbiAgICByZXR1cm4gd2luZG93O1xuICB9IGVsc2UgaWYgKHR5cGVvZiBzZWxmICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgcmV0dXJuIHNlbGY7XG4gIH1cblxuICByZXR1cm4gZmFsbGJhY2tXaW5kb3c7XG59XG4iXX0=
package/src/index.ts DELETED
@@ -1,16 +0,0 @@
1
- const fallbackWindow = {} as Window;
2
-
3
- /**
4
- * Locates the global scope for a browser or browser-like environment. If
5
- * neither `window` nor `self` is defined by the environment, the same object
6
- * will be returned on each invocation.
7
- */
8
- export function locateWindow(): Window {
9
- if (typeof window !== "undefined") {
10
- return window;
11
- } else if (typeof self !== "undefined") {
12
- return self;
13
- }
14
-
15
- return fallbackWindow;
16
- }
package/tsconfig.cjs.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "strict": false,
4
- "noImplicitUseStrict": true,
5
- "noImplicitAny": true,
6
- "noImplicitThis": true,
7
- "strictNullChecks": true,
8
- "declarationDir": "./dist/types",
9
- "rootDir": "./src",
10
- "outDir": "./dist/cjs",
11
- "baseUrl": "."
12
- },
13
- "extends": "../../tsconfig.cjs.json",
14
- "include": ["src/"]
15
- }
package/tsconfig.es.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "strict": false,
4
- "noImplicitUseStrict": true,
5
- "noImplicitAny": true,
6
- "noImplicitThis": true,
7
- "strictNullChecks": true,
8
- "lib": ["dom", "es5", "es2015.collection"],
9
- "declarationDir": "./dist/types",
10
- "rootDir": "./src",
11
- "outDir": "./dist/es",
12
- "baseUrl": "."
13
- },
14
- "extends": "../../tsconfig.es.json",
15
- "include": ["src/"]
16
- }