ctx-core 6.1.1 → 6.1.3

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.
@@ -1,7 +1,4 @@
1
1
  export function import_meta_env_() {
2
- return import_meta_env__ensure()
3
- }
4
- export function import_meta_env__ensure() {
5
2
  if (!import.meta.env) {
6
3
  import.meta.env = new Proxy(globalThis.process?.env ?? {}, {
7
4
  get(target, prop, receiver) {
@@ -14,3 +11,4 @@ export function import_meta_env__ensure() {
14
11
  }
15
12
  return import.meta.env
16
13
  }
14
+ export { import_meta_env_ as import_meta_env__ensure }
@@ -0,0 +1,7 @@
1
+ import { test } from 'uvu'
2
+ import { equal } from 'uvu/assert'
3
+ import { import_meta_env_ } from './index.js'
4
+ test('server|import_meta_env_', ()=>{
5
+ equal(import_meta_env_(), process.env)
6
+ })
7
+ test.run()
@@ -16,8 +16,8 @@ export interface queue_T {
16
16
  get item_count():number
17
17
  }
18
18
  export interface queue_waiting_T {
19
- fn:()=>Promise<any>
20
- fulfil:(v:any)=>void
21
- reject:(err:any)=>void
19
+ fn:()=>Promise<unknown>
20
+ fulfil:(v:unknown)=>void
21
+ reject:(err:unknown)=>void
22
22
  }
23
23
  export type queue_item_T = queue_waiting_T
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctx-core",
3
- "version": "6.1.1",
3
+ "version": "6.1.3",
4
4
  "description": "ctx-core core library",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -293,7 +293,7 @@
293
293
  },
294
294
  "devDependencies": {
295
295
  "@arethetypeswrong/cli": "^0.13.8",
296
- "@ctx-core/preprocess": "^0.1.1",
296
+ "@ctx-core/preprocess": "^0.1.2",
297
297
  "@size-limit/preset-small-lib": "^11.0.2",
298
298
  "@types/jsdom": "^21.1.6",
299
299
  "@types/node": "^20.11.17",
@@ -305,7 +305,7 @@
305
305
  "jsdom": "^24.0.0",
306
306
  "sinon": "^17.0.1",
307
307
  "size-limit": "^11.0.2",
308
- "tsx": "^4.7.0",
308
+ "tsx": "^4.7.1",
309
309
  "typescript": "next",
310
310
  "uvu": "^0.5.6"
311
311
  },