@alwatr/global-this 5.6.3 → 5.6.5

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,18 @@
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
+ ## [5.6.5](https://github.com/Alwatr/nanolib/compare/@alwatr/global-this@5.6.4...@alwatr/global-this@5.6.5) (2025-11-18)
7
+
8
+ ### 🐛 Bug Fixes
9
+
10
+ * add type imports from @alwatr/nano-build and @alwatr/type-helper across multiple packages ([5ab7f15](https://github.com/Alwatr/nanolib/commit/5ab7f159ba57788bf8df40fa96a3027f589d5a77))
11
+
12
+ ## [5.6.4](https://github.com/Alwatr/nanolib/compare/@alwatr/global-this@5.6.3...@alwatr/global-this@5.6.4) (2025-11-15)
13
+
14
+ ### 🔗 Dependencies update
15
+
16
+ * bump the npm-dependencies group with 2 updates ([a80b84d](https://github.com/Alwatr/nanolib/commit/a80b84dada6c09b5e5621e7487c8ec13fff3c23a))
17
+
6
18
  ## [5.6.3](https://github.com/Alwatr/nanolib/compare/@alwatr/global-this@5.6.2...@alwatr/global-this@5.6.3) (2025-11-15)
7
19
 
8
20
  **Note:** Version bump only for package @alwatr/global-this
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /** 📦 @alwatr/global-this v5.6.3 */
2
- __dev_mode__: console.debug("📦 @alwatr/global-this v5.6.3");
3
- "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{getGlobalThis:()=>getGlobalThis});module.exports=__toCommonJS(main_exports);var globalThis__=(()=>{if(typeof globalThis==="object"&&globalThis)return globalThis;if(typeof window==="object"&&window)return window;if(typeof global==="object"&&global)return global;if(typeof self==="object"&&self)return self;throw new Error(`${"@alwatr/global-this"} v${"5.6.3"}: Could not find global object.`)})();function getGlobalThis(){return globalThis__}0&&(module.exports={getGlobalThis});
1
+ /** 📦 @alwatr/global-this v5.6.5 */
2
+ __dev_mode__: console.debug("📦 @alwatr/global-this v5.6.5");
3
+ "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{getGlobalThis:()=>getGlobalThis});module.exports=__toCommonJS(main_exports);var globalThis__=(()=>{if(typeof globalThis==="object"&&globalThis)return globalThis;if(typeof window==="object"&&window)return window;if(typeof global==="object"&&global)return global;if(typeof self==="object"&&self)return self;throw new Error(`${"@alwatr/global-this"} v${"5.6.5"}: Could not find global object.`)})();function getGlobalThis(){return globalThis__}0&&(module.exports={getGlobalThis});
4
4
  //# sourceMappingURL=main.cjs.map
package/dist/main.cjs.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/main.ts"],
4
- "sourcesContent": ["/* eslint-disable import/export */\nexport type * from '@alwatr/type-helper';\nexport type * from '@alwatr/nano-build';\n\nexport type GlobalThis = typeof globalThis;\n\n/**\n * The global object in various JavaScript environments.\n * It checks for `globalThis`, `window`, `global`, and `self` in that order.\n * @private\n */\nconst globalThis__: GlobalThis = (() => {\n if (typeof globalThis === 'object' && globalThis) return globalThis;\n if (typeof window === 'object' && window) return window;\n if (typeof global === 'object' && global) return global;\n if (typeof self === 'object' && self) return self;\n throw new Error(`${__package_name__} v${__package_version__}: Could not find global object.`);\n})();\n\n/**\n * Provides access to `globalThis`, ensuring cross-platform compatibility.\n *\n * @example\n * ```typescript\n * getGlobalThis<{alwatr:{foo: string}}>().alwatr = {\n * foo: 'bar',\n * }\n * ```\n */\nexport function getGlobalThis<T extends DictionaryOpt = GlobalThis>(): GlobalThis & T {\n return globalThis__ as GlobalThis & T;\n}\n"],
5
- "mappings": ";;qqBAAA,uHAWA,IAAM,cAA4B,IAAM,CACtC,GAAI,OAAO,aAAe,UAAY,WAAY,OAAO,WACzD,GAAI,OAAO,SAAW,UAAY,OAAQ,OAAO,OACjD,GAAI,OAAO,SAAW,UAAY,OAAQ,OAAO,OACjD,GAAI,OAAO,OAAS,UAAY,KAAM,OAAO,KAC7C,MAAM,IAAI,MAAM,GAAG,qBAAgB,KAAK,OAAmB,iCAAiC,CAC9F,GAAG,EAYI,SAAS,eAAsE,CACpF,OAAO,YACT",
4
+ "sourcesContent": ["import type {} from '@alwatr/nano-build';\nimport type {} from '@alwatr/type-helper';\n\nexport type GlobalThis = typeof globalThis;\n\n/**\n * The global object in various JavaScript environments.\n * It checks for `globalThis`, `window`, `global`, and `self` in that order.\n * @private\n */\nconst globalThis__: GlobalThis = (() => {\n if (typeof globalThis === 'object' && globalThis) return globalThis;\n if (typeof window === 'object' && window) return window;\n if (typeof global === 'object' && global) return global;\n if (typeof self === 'object' && self) return self;\n throw new Error(`${__package_name__} v${__package_version__}: Could not find global object.`);\n})();\n\n/**\n * Provides access to `globalThis`, ensuring cross-platform compatibility.\n *\n * @example\n * ```typescript\n * getGlobalThis<{alwatr:{foo: string}}>().alwatr = {\n * foo: 'bar',\n * }\n * ```\n */\nexport function getGlobalThis<T extends DictionaryOpt = GlobalThis>(): GlobalThis & T {\n return globalThis__ as GlobalThis & T;\n}\n"],
5
+ "mappings": ";;qqBAAA,uHAUA,IAAM,cAA4B,IAAM,CACtC,GAAI,OAAO,aAAe,UAAY,WAAY,OAAO,WACzD,GAAI,OAAO,SAAW,UAAY,OAAQ,OAAO,OACjD,GAAI,OAAO,SAAW,UAAY,OAAQ,OAAO,OACjD,GAAI,OAAO,OAAS,UAAY,KAAM,OAAO,KAC7C,MAAM,IAAI,MAAM,GAAG,qBAAgB,KAAK,OAAmB,iCAAiC,CAC9F,GAAG,EAYI,SAAS,eAAsE,CACpF,OAAO,YACT",
6
6
  "names": []
7
7
  }
package/dist/main.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- export type * from '@alwatr/type-helper';
2
- export type * from '@alwatr/nano-build';
3
1
  export type GlobalThis = typeof globalThis;
4
2
  /**
5
3
  * Provides access to `globalThis`, ensuring cross-platform compatibility.
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AACA,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,oBAAoB,CAAC;AAExC,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAe3C;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,aAAa,GAAG,UAAU,KAAK,UAAU,GAAG,CAAC,CAEpF"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAe3C;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,aAAa,GAAG,UAAU,KAAK,UAAU,GAAG,CAAC,CAEpF"}
package/dist/main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /** 📦 @alwatr/global-this v5.6.3 */
2
- __dev_mode__: console.debug("📦 @alwatr/global-this v5.6.3");
3
- var globalThis__=(()=>{if(typeof globalThis==="object"&&globalThis)return globalThis;if(typeof window==="object"&&window)return window;if(typeof global==="object"&&global)return global;if(typeof self==="object"&&self)return self;throw new Error(`${"@alwatr/global-this"} v${"5.6.3"}: Could not find global object.`)})();function getGlobalThis(){return globalThis__}export{getGlobalThis};
1
+ /** 📦 @alwatr/global-this v5.6.5 */
2
+ __dev_mode__: console.debug("📦 @alwatr/global-this v5.6.5");
3
+ var globalThis__=(()=>{if(typeof globalThis==="object"&&globalThis)return globalThis;if(typeof window==="object"&&window)return window;if(typeof global==="object"&&global)return global;if(typeof self==="object"&&self)return self;throw new Error(`${"@alwatr/global-this"} v${"5.6.5"}: Could not find global object.`)})();function getGlobalThis(){return globalThis__}export{getGlobalThis};
4
4
  //# sourceMappingURL=main.mjs.map
package/dist/main.mjs.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/main.ts"],
4
- "sourcesContent": ["/* eslint-disable import/export */\nexport type * from '@alwatr/type-helper';\nexport type * from '@alwatr/nano-build';\n\nexport type GlobalThis = typeof globalThis;\n\n/**\n * The global object in various JavaScript environments.\n * It checks for `globalThis`, `window`, `global`, and `self` in that order.\n * @private\n */\nconst globalThis__: GlobalThis = (() => {\n if (typeof globalThis === 'object' && globalThis) return globalThis;\n if (typeof window === 'object' && window) return window;\n if (typeof global === 'object' && global) return global;\n if (typeof self === 'object' && self) return self;\n throw new Error(`${__package_name__} v${__package_version__}: Could not find global object.`);\n})();\n\n/**\n * Provides access to `globalThis`, ensuring cross-platform compatibility.\n *\n * @example\n * ```typescript\n * getGlobalThis<{alwatr:{foo: string}}>().alwatr = {\n * foo: 'bar',\n * }\n * ```\n */\nexport function getGlobalThis<T extends DictionaryOpt = GlobalThis>(): GlobalThis & T {\n return globalThis__ as GlobalThis & T;\n}\n"],
5
- "mappings": ";;AAWA,IAAM,cAA4B,IAAM,CACtC,GAAI,OAAO,aAAe,UAAY,WAAY,OAAO,WACzD,GAAI,OAAO,SAAW,UAAY,OAAQ,OAAO,OACjD,GAAI,OAAO,SAAW,UAAY,OAAQ,OAAO,OACjD,GAAI,OAAO,OAAS,UAAY,KAAM,OAAO,KAC7C,MAAM,IAAI,MAAM,GAAG,qBAAgB,KAAK,OAAmB,iCAAiC,CAC9F,GAAG,EAYI,SAAS,eAAsE,CACpF,OAAO,YACT",
4
+ "sourcesContent": ["import type {} from '@alwatr/nano-build';\nimport type {} from '@alwatr/type-helper';\n\nexport type GlobalThis = typeof globalThis;\n\n/**\n * The global object in various JavaScript environments.\n * It checks for `globalThis`, `window`, `global`, and `self` in that order.\n * @private\n */\nconst globalThis__: GlobalThis = (() => {\n if (typeof globalThis === 'object' && globalThis) return globalThis;\n if (typeof window === 'object' && window) return window;\n if (typeof global === 'object' && global) return global;\n if (typeof self === 'object' && self) return self;\n throw new Error(`${__package_name__} v${__package_version__}: Could not find global object.`);\n})();\n\n/**\n * Provides access to `globalThis`, ensuring cross-platform compatibility.\n *\n * @example\n * ```typescript\n * getGlobalThis<{alwatr:{foo: string}}>().alwatr = {\n * foo: 'bar',\n * }\n * ```\n */\nexport function getGlobalThis<T extends DictionaryOpt = GlobalThis>(): GlobalThis & T {\n return globalThis__ as GlobalThis & T;\n}\n"],
5
+ "mappings": ";;AAUA,IAAM,cAA4B,IAAM,CACtC,GAAI,OAAO,aAAe,UAAY,WAAY,OAAO,WACzD,GAAI,OAAO,SAAW,UAAY,OAAQ,OAAO,OACjD,GAAI,OAAO,SAAW,UAAY,OAAQ,OAAO,OACjD,GAAI,OAAO,OAAS,UAAY,KAAM,OAAO,KAC7C,MAAM,IAAI,MAAM,GAAG,qBAAgB,KAAK,OAAmB,iCAAiC,CAC9F,GAAG,EAYI,SAAS,eAAsE,CACpF,OAAO,YACT",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@alwatr/global-this",
3
3
  "description": "Provides access to `globalThis`, ensuring cross-platform compatibility, including browsers (`window`), Node.js (`global`), and Web Workers (`self`).",
4
- "version": "5.6.3",
4
+ "version": "5.6.5",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "bugs": "https://github.com/Alwatr/nanolib/issues",
7
7
  "devDependencies": {
8
- "@alwatr/nano-build": "6.3.7",
9
- "@alwatr/prettier-config": "5.0.5",
10
- "@alwatr/tsconfig-base": "6.0.3",
11
- "@alwatr/type-helper": "6.1.6",
12
- "@types/node": "^24.10.0",
8
+ "@alwatr/nano-build": "6.3.9",
9
+ "@alwatr/prettier-config": "6.0.0",
10
+ "@alwatr/tsconfig-base": "6.0.4",
11
+ "@alwatr/type-helper": "6.1.7",
12
+ "@types/node": "^24.10.1",
13
13
  "typescript": "^5.9.3"
14
14
  },
15
15
  "exports": {
@@ -77,5 +77,5 @@
77
77
  "sideEffects": false,
78
78
  "type": "module",
79
79
  "types": "./dist/main.d.ts",
80
- "gitHead": "b41774f9b72639235fbbe9d48beb6a1ed612a86c"
80
+ "gitHead": "3c8ac8d51930dde05c5ed356ff384da47c1de89d"
81
81
  }