mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-06-28 15:21:37 +00:00
Selector struct 추가
This commit is contained in:
@ -120,14 +120,6 @@ pub fn compile(path: &str) -> JsValue {
|
||||
ret
|
||||
}
|
||||
|
||||
///
|
||||
/// deprecated. use selector
|
||||
///
|
||||
#[wasm_bindgen]
|
||||
pub fn reader(js_value: JsValue) -> JsValue {
|
||||
selector(js_value)
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn selector(js_value: JsValue) -> JsValue {
|
||||
let json = match js_value.as_f64() {
|
||||
@ -167,13 +159,5 @@ pub fn select(js_value: JsValue, path: &str) -> JsValue {
|
||||
}
|
||||
}
|
||||
|
||||
///
|
||||
/// deprecated. use select
|
||||
///
|
||||
#[wasm_bindgen]
|
||||
pub fn read(js_value: JsValue, path: &str) -> JsValue {
|
||||
select(js_value, path)
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn testa() {}
|
Reference in New Issue
Block a user