@getlang/get
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -1,2 +0,2 @@ | ||
import type { Program } from '@getlang/parser'; | ||
import { type Program } from '@getlang/parser/ast'; | ||
import type { Hooks, MaybePromise } from '@getlang/lib'; | ||
@@ -3,0 +3,0 @@ export type InternalHooks = { |
@@ -1,2 +0,4 @@ | ||
import { visit, SKIP, NodeKind, RootScope } from '@getlang/parser'; | ||
import { visit, SKIP, } from '@getlang/parser/visitor'; | ||
import { RootScope } from '@getlang/parser/scope'; | ||
import { NodeKind } from '@getlang/parser/ast'; | ||
import { invariant, NullSelectionError, QuerySyntaxError, ValueTypeError, ValueReferenceError, ImportError, } from '@getlang/lib'; | ||
@@ -3,0 +5,0 @@ import * as http from './net/http.js'; |
import type { AnyHtmlNode } from 'domhandler'; | ||
import type { SelectFn } from './types.js'; | ||
import './patch-dom'; | ||
import './patch-dom.js'; | ||
export declare const parse: (html: string) => AnyHtmlNode; | ||
export declare const select: SelectFn<AnyHtmlNode>; | ||
export declare const getValue: (el: AnyHtmlNode) => string; |
@@ -8,3 +8,3 @@ import { parse as parse5 } from 'parse5'; | ||
import { SelectorSyntaxError, NullSelectionError, invariant, } from '@getlang/lib'; | ||
import './patch-dom'; | ||
import './patch-dom.js'; | ||
export const parse = (html) => { | ||
@@ -11,0 +11,0 @@ return parse5(html, { treeAdapter: adapter }); |
import type { Hooks } from '@getlang/lib'; | ||
import type { Program } from '@getlang/parser'; | ||
export { version } from './package.json'; | ||
import type { Program } from '@getlang/parser/ast'; | ||
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>; | ||
declare const version: string; | ||
export { version }; |
@@ -6,3 +6,3 @@ import { wait, ImportError } from '@getlang/lib'; | ||
import { runSlice } from './execute/lang.js'; | ||
export { version } from './package.json' with { type: 'json' }; | ||
import pkg from './package.json' with { type: 'json' }; | ||
function buildHooks(hooks = {}) { | ||
@@ -28,2 +28,4 @@ return { | ||
} | ||
const { version } = pkg; | ||
export { version }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@getlang/get", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"license": "Apache-2.0", | ||
"type": "module", | ||
"main": "dist", | ||
"files": [ | ||
"dist" | ||
], | ||
"exports": { | ||
"bun": "./index.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"bugs": { | ||
@@ -20,4 +20,4 @@ "url": "https://github.com/getlang-dev/get/issues" | ||
"dependencies": { | ||
"@getlang/parser": "workspace:^0.0.14", | ||
"@getlang/lib": "workspace:^0.0.11", | ||
"@getlang/parser": "workspace:^0.0.16", | ||
"@getlang/lib": "workspace:^0.0.13", | ||
"@getlang/xpath": "0.0.35-0", | ||
@@ -24,0 +24,0 @@ "acorn": "^8.12.0", |
{ | ||
"name": "@getlang/get", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"license": "Apache-2.0", | ||
"type": "module", | ||
"main": "dist", | ||
"files": [ | ||
"dist" | ||
], | ||
"exports": { | ||
"bun": "./index.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"bugs": { | ||
@@ -20,4 +20,4 @@ "url": "https://github.com/getlang-dev/get/issues" | ||
"dependencies": { | ||
"@getlang/parser": "^0.0.14", | ||
"@getlang/lib": "^0.0.11", | ||
"@getlang/parser": "^0.0.16", | ||
"@getlang/lib": "^0.0.13", | ||
"@getlang/xpath": "0.0.35-0", | ||
@@ -24,0 +24,0 @@ "acorn": "^8.12.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
83036
57
1609
+ Added@getlang/lib@0.0.13(transitive)
+ Added@getlang/parser@0.0.16(transitive)
- Removed@getlang/lib@0.0.11(transitive)
- Removed@getlang/parser@0.0.14(transitive)
Updated@getlang/lib@^0.0.13
Updated@getlang/parser@^0.0.16