@getlang/get
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -1,6 +0,6 @@ | ||
import type { Hooks } from '@getlang/lib'; | ||
import type { Hooks } from '@getlang/utils'; | ||
import type { Program } from '@getlang/parser/ast'; | ||
export { version } from './version.js'; | ||
export declare const version = "0.0.21"; | ||
export type UserHooks = Partial<Hooks>; | ||
export declare function execute(source: string, inputs?: Record<string, unknown>, hooks?: UserHooks): Promise<unknown>; | ||
export declare function executeAST(ast: Program, inputs?: Record<string, unknown>, hooks?: UserHooks): Promise<unknown>; | ||
export declare function execute(source: string, inputs?: Record<string, unknown>, hooks?: UserHooks): Promise<any>; | ||
export declare function executeAST(ast: Program, inputs?: Record<string, unknown>, hooks?: UserHooks): Promise<any>; |
@@ -1,7 +0,7 @@ | ||
import { wait, ImportError } from '@getlang/lib'; | ||
import { slice } from '@getlang/lib'; | ||
import { wait, ImportError } from '@getlang/utils'; | ||
import { parse, desugar } from '@getlang/parser'; | ||
import { execute as exec } from './execute/execute.js'; | ||
import * as http from './execute/net/http.js'; | ||
import { runSlice } from './execute/lang.js'; | ||
export { version } from './version.js'; | ||
import { execute as exec } from './execute.js'; | ||
import * as http from '../lib/net/http.js'; | ||
export const version = '0.0.21'; | ||
function buildHooks(hooks = {}) { | ||
@@ -16,3 +16,3 @@ return { | ||
request: hooks.request ?? http.requestHook, | ||
slice: hooks.slice ?? runSlice, | ||
slice: hooks.slice ?? slice.runSlice, | ||
}; | ||
@@ -19,0 +19,0 @@ } |
16
index.ts
@@ -1,11 +0,11 @@ | ||
import type { Hooks } from '@getlang/lib' | ||
import { wait, ImportError } from '@getlang/lib' | ||
import { slice } from '@getlang/lib' | ||
import type { Hooks } from '@getlang/utils' | ||
import { wait, ImportError } from '@getlang/utils' | ||
import { parse, desugar } from '@getlang/parser' | ||
import type { Program } from '@getlang/parser/ast' | ||
import { execute as exec } from './execute/execute.js' | ||
import type { InternalHooks } from './execute/execute.js' | ||
import * as http from './execute/net/http.js' | ||
import { runSlice } from './execute/lang.js' | ||
import { execute as exec } from './execute.js' | ||
import type { InternalHooks } from './execute.js' | ||
import * as http from '../lib/net/http.js' | ||
export { version } from './version.js' | ||
export const version = '0.0.21' | ||
export type UserHooks = Partial<Hooks> | ||
@@ -24,3 +24,3 @@ | ||
request: hooks.request ?? http.requestHook, | ||
slice: hooks.slice ?? runSlice, | ||
slice: hooks.slice ?? slice.runSlice, | ||
} | ||
@@ -27,0 +27,0 @@ } |
{ | ||
"name": "@getlang/get", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"license": "Apache-2.0", | ||
@@ -20,18 +20,10 @@ "type": "module", | ||
"dependencies": { | ||
"@getlang/parser": "^0.0.17", | ||
"@getlang/lib": "^0.0.13", | ||
"@getlang/lib": "^0.0.1", | ||
"@getlang/utils": "^0.0.14", | ||
"@getlang/parser": "^0.0.18", | ||
"@getlang/xpath": "0.0.35-0", | ||
"acorn": "^8.12.0", | ||
"css-select": "^5.1.0", | ||
"css-what": "^6.1.0", | ||
"dom-serializer": "^2.0.0", | ||
"domhandler": "^5.0.3", | ||
"domutils": "^3.1.0", | ||
"esquery": "^1.5.0", | ||
"lodash-es": "^4.17.21", | ||
"parse5": "^7.1.2", | ||
"parse5-htmlparser2-tree-adapter": "^7.0.0", | ||
"set-cookie-parser": "^2.6.0" | ||
"lodash-es": "^4.17.21" | ||
}, | ||
"devDependencies": { | ||
"@types/js-yaml": "^4.0.9", | ||
"@types/lodash-es": "^4.17.12", | ||
@@ -38,0 +30,0 @@ "@types/set-cookie-parser": "^2.4.9" |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
5
1
35499
3
12
698
+ Added@getlang/utils@^0.0.14
+ Added@getlang/lib@0.0.1(transitive)
+ Added@getlang/parser@0.0.18(transitive)
+ Added@getlang/utils@0.0.14(transitive)
- Removedacorn@^8.12.0
- Removedcss-select@^5.1.0
- Removedcss-what@^6.1.0
- Removeddom-serializer@^2.0.0
- Removeddomhandler@^5.0.3
- Removeddomutils@^3.1.0
- Removedesquery@^1.5.0
- Removedparse5@^7.1.2
- Removedset-cookie-parser@^2.6.0
- Removed@getlang/lib@0.0.13(transitive)
- Removed@getlang/parser@0.0.17(transitive)
Updated@getlang/lib@^0.0.1
Updated@getlang/parser@^0.0.18