ecma-evaluator 2.1.0 → 2.1.1

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.
package/README.md CHANGED
@@ -32,8 +32,8 @@ evalTemplate("Hello {{ name }}!", { name: "World" }); // "Hello World!"
32
32
 
33
33
  ## Documentation
34
34
 
35
- - [Getting started](/guide/getting-started)
36
- - [API, supported features, security, and usage reference](/guide/reference)
35
+ - [Getting started](https://axetroy.github.io/ecma-evaluator/guide/getting-started)
36
+ - [API, supported features, security, and usage reference](https://axetroy.github.io/ecma-evaluator/guide/reference)
37
37
  - [Online playground](https://axetroy.github.io/ecma-evaluator/#playground)
38
38
 
39
39
  See the [documentation site](https://axetroy.github.io/ecma-evaluator/).
package/README.zh-CN.md CHANGED
@@ -32,8 +32,8 @@ evalTemplate("你好,{{ name }}!", { name: "世界" }); // "你好,世界
32
32
 
33
33
  ## 文档
34
34
 
35
- - [快速开始](/zh-CN/guide/getting-started)
36
- - [API、支持的特性、安全性和使用说明](/zh-CN/guide/reference)
35
+ - [快速开始](https://axetroy.github.io/ecma-evaluator/zh-CN/guide/getting-started)
36
+ - [API、支持的特性、安全性和使用说明](https://axetroy.github.io/ecma-evaluator/zh-CN/guide/reference)
37
37
  - [在线体验](https://axetroy.github.io/ecma-evaluator/zh-CN/#playground)
38
38
 
39
39
  也可以访问[文档网站](https://axetroy.github.io/ecma-evaluator/zh-CN/)。
@@ -1,5 +1,3 @@
1
- import { Node } from "acorn";
2
-
3
1
  export interface EvaluatorOptions {
4
2
  /**
5
3
  * Maximum expression length in UTF-16 code units (hard maximum: 100000).
@@ -26,9 +24,3 @@ export declare class Evaluator {
26
24
 
27
25
  evaluate<T = unknown>(expression: string): T;
28
26
  }
29
-
30
- /**
31
- * Renders an AST node back to a short source-like string. Returns `null` for
32
- * node types that have no textual representation.
33
- */
34
- export declare function getNodeString(node: Node): string | null;