dequanto 0.1.32 → 0.1.33

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.
@@ -12,7 +12,7 @@ var $dependency;
12
12
  }
13
13
  $dependency.load = load;
14
14
  function dirname() {
15
- if (typeof __dirname === 'undefined') {
15
+ if (typeof __dirname !== 'undefined') {
16
16
  return __dirname;
17
17
  }
18
18
  //#if (CJS)
@@ -10,7 +10,7 @@ export var $dependency;
10
10
  }
11
11
  $dependency.load = load;
12
12
  function dirname() {
13
- if (typeof __dirname === 'undefined') {
13
+ if (typeof __dirname !== 'undefined') {
14
14
  return __dirname;
15
15
  }
16
16
  return import.meta.dirname;
@@ -1,5 +1,5 @@
1
1
  /** ESM and CJS Loader */
2
2
  export declare namespace $dependency {
3
3
  function load<T = any>(name: string): Promise<T>;
4
- function dirname(): undefined;
4
+ function dirname(): string;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dequanto",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "author": {
5
5
  "name": "Alex Kit",
6
6
  "email": "alex.kit@atmajs.com"
@@ -16,7 +16,7 @@ export namespace $dependency {
16
16
  }
17
17
 
18
18
  export function dirname () {
19
- if (typeof __dirname === 'undefined') {
19
+ if (typeof __dirname !== 'undefined') {
20
20
  return __dirname;
21
21
  }
22
22
  //#if (CJS)