@llamaindex/env
Advanced tools
Comparing version 0.1.10 to 0.1.11
# @llamaindex/env | ||
## 0.1.11 | ||
### Patch Changes | ||
- ac07e3c: fix: replace instanceof check with `.type` check | ||
- 1a6137b: feat: experimental support for browser | ||
If you see bundler issue in next.js edge runtime, please bump to `next@14` latest version. | ||
- ac07e3c: fix: add `console.warn` when import dual module | ||
## 0.1.10 | ||
@@ -4,0 +15,0 @@ |
@@ -23,3 +23,4 @@ /** | ||
}); | ||
_export_star(require("./polyfill.js"), exports); | ||
require("./global-check.js"); | ||
_export_star(require("./node-polyfill.js"), exports); | ||
const _js = require("./tokenizers/js.js"); | ||
@@ -26,0 +27,0 @@ function _export_star(from, to) { |
@@ -25,6 +25,6 @@ /** | ||
AsyncLocalStorage: function() { | ||
return _utils.AsyncLocalStorage; | ||
return _index.AsyncLocalStorage; | ||
}, | ||
CustomEvent: function() { | ||
return _utils.CustomEvent; | ||
return _index.CustomEvent; | ||
}, | ||
@@ -53,3 +53,3 @@ EOL: function() { | ||
getEnv: function() { | ||
return _utils.getEnv; | ||
return _index.getEnv; | ||
}, | ||
@@ -66,3 +66,3 @@ ok: function() { | ||
setEnvs: function() { | ||
return _utils.setEnvs; | ||
return _index.setEnvs; | ||
}, | ||
@@ -80,4 +80,5 @@ tokenizers: function() { | ||
const _node = require("./fs/node.js"); | ||
require("./global-check.js"); | ||
const _node1 = require("./tokenizers/node.js"); | ||
const _utils = require("./utils.js"); | ||
const _index = require("./utils/index.js"); | ||
function _interop_require_default(obj) { | ||
@@ -84,0 +85,0 @@ return obj && obj.__esModule ? obj : { |
@@ -28,4 +28,4 @@ /** | ||
}); | ||
const _utils = require("./utils.js"); | ||
_export_star(require("./polyfill.js"), exports); | ||
const _index = require("./utils/index.js"); | ||
_export_star(require("./node-polyfill.js"), exports); | ||
const _js = require("./tokenizers/js.js"); | ||
@@ -46,3 +46,3 @@ function _export_star(from, to) { | ||
function getEnv(name) { | ||
return _utils.INTERNAL_ENV[name]; | ||
return _index.INTERNAL_ENV[name]; | ||
} |
@@ -5,3 +5,4 @@ /** | ||
* @module | ||
*/ export * from "./polyfill.js"; | ||
*/ import "./global-check.js"; | ||
export * from "./node-polyfill.js"; | ||
export { Tokenizers, tokenizers } from "./tokenizers/js.js"; |
@@ -20,2 +20,3 @@ /** | ||
import { createWriteStream, fs } from "./fs/node.js"; | ||
import "./global-check.js"; | ||
export function createSHA256() { | ||
@@ -33,3 +34,3 @@ const hash = createHash("sha256"); | ||
export { Tokenizers, tokenizers } from "./tokenizers/node.js"; | ||
export { AsyncLocalStorage, CustomEvent, getEnv, setEnvs } from "./utils.js"; | ||
export { AsyncLocalStorage, CustomEvent, getEnv, setEnvs } from "./utils/index.js"; | ||
export { createWriteStream, EOL, fileURLToPath, fs, ok, path, randomUUID, Readable }; |
@@ -7,4 +7,4 @@ /** | ||
* @module | ||
*/ import { INTERNAL_ENV } from "./utils.js"; | ||
export * from "./polyfill.js"; | ||
*/ import { INTERNAL_ENV } from "./utils/index.js"; | ||
export * from "./node-polyfill.js"; | ||
export function getEnv(name) { | ||
@@ -11,0 +11,0 @@ return INTERNAL_ENV[name]; |
@@ -21,6 +21,7 @@ /** | ||
import { createWriteStream, fs } from "./fs/node.js"; | ||
import type { SHA256 } from "./polyfill.js"; | ||
import "./global-check.js"; | ||
import type { SHA256 } from "./node-polyfill.js"; | ||
export declare function createSHA256(): SHA256; | ||
export { Tokenizers, tokenizers, type Tokenizer } from "./tokenizers/node.js"; | ||
export { AsyncLocalStorage, CustomEvent, getEnv, setEnvs } from "./utils.js"; | ||
export { AsyncLocalStorage, CustomEvent, getEnv, setEnvs, } from "./utils/index.js"; | ||
export { createWriteStream, EOL, fileURLToPath, fs, ok, path, randomUUID, Readable, }; |
@@ -6,3 +6,4 @@ /** | ||
*/ | ||
export * from "./polyfill.js"; | ||
import "./global-check.js"; | ||
export * from "./node-polyfill.js"; | ||
export { Tokenizers, tokenizers, type Tokenizer } from "./tokenizers/js.js"; |
@@ -1,3 +0,3 @@ | ||
export * from "./polyfill.js"; | ||
export * from "./node-polyfill.js"; | ||
export declare function getEnv(name: string): string | undefined; | ||
export { Tokenizers, tokenizers, type Tokenizer } from "./tokenizers/js.js"; |
{ | ||
"name": "@llamaindex/env", | ||
"description": "environment wrapper, supports all JS environment including node, deno, bun, edge runtime, and cloudflare worker", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"type": "module", | ||
@@ -39,2 +39,6 @@ "types": "dist/type/index.d.ts", | ||
}, | ||
"browser": { | ||
"types": "./dist/type/index.browser.d.ts", | ||
"default": "./dist/index.browser.js" | ||
}, | ||
"import": { | ||
@@ -41,0 +45,0 @@ "types": "./dist/type/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
964966
51
23533