Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
freestrings committed Dec 16, 2020
1 parent efb97f4 commit d77c066
Show file tree
Hide file tree
Showing 14 changed files with 10,766 additions and 201 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ assert_eq!(ret[0], person);

</details>

<details><summary><b>Rust - jsonpath::compile(jsonpath: &str)</b></summary>
<details><summary><b>Rust - jsonpath::Compiled::compile(jsonpath: &str)</b></summary>

```rust
let mut template = jsonpath::compile("$..friends[0]");
let template = jsonpath::Compiled::compile("$..friends[0]").unwrap();

let json_obj = json!({
"school": {
Expand All @@ -210,7 +210,7 @@ let json_obj = json!({
{"name": "친구4"}
]});

let json = template(&json_obj).unwrap();
let json = template.select(&json_obj).unwrap();

assert_eq!(json, vec![
&json!({"name": "친구3", "age": 30}),
Expand Down
68 changes: 41 additions & 27 deletions docs/0.bootstrap.js

Large diffs are not rendered by default.

38 changes: 0 additions & 38 deletions docs/1.bootstrap.js

This file was deleted.

Binary file removed docs/a9530753c3f0aa3c5ead.module.wasm
Binary file not shown.
79 changes: 30 additions & 49 deletions docs/bench/0.bootstrap.js

Large diffs are not rendered by default.

44 changes: 21 additions & 23 deletions docs/bench/1.bootstrap.js

Large diffs are not rendered by default.

Binary file removed docs/bench/a9530753c3f0aa3c5ead.module.wasm
Binary file not shown.
55 changes: 26 additions & 29 deletions docs/bench/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,51 +54,48 @@
/******/ var wasmImportObjects = {
/******/ "../web_pkg/jsonpath_wasm_bg.wasm": function() {
/******/ return {
/******/ "./jsonpath_wasm.js": {
/******/ "__wbindgen_json_parse": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_json_parse"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_json_serialize": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_json_serialize"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_cb_forget": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_cb_forget"](p0i32);
/******/ },
/******/ "__wbg_error_e7d3e8dbb31828c8": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbg_error_e7d3e8dbb31828c8"](p0i32,p1i32);
/******/ "./jsonpath_wasm_bg.js": {
/******/ "__wbg_error_c4abc40e0406628b": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbg_error_c4abc40e0406628b"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_object_drop_ref": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_object_drop_ref"](p0i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_object_drop_ref"](p0i32);
/******/ },
/******/ "__wbindgen_object_clone_ref": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_object_clone_ref"](p0i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_object_clone_ref"](p0i32);
/******/ },
/******/ "__wbindgen_string_new": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_string_new"](p0i32,p1i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_string_new"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_json_parse": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_json_parse"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_json_serialize": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_json_serialize"](p0i32,p1i32);
/******/ },
/******/ "__wbg_call_1ad0eb4a7ab279eb": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbg_call_1ad0eb4a7ab279eb"](p0i32,p1i32,p2i32);
/******/ "__wbg_call_bf745b1758bb6693": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbg_call_bf745b1758bb6693"](p0i32,p1i32,p2i32);
/******/ },
/******/ "__wbindgen_is_string": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_is_string"](p0i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_is_string"](p0i32);
/******/ },
/******/ "__wbindgen_string_get": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_string_get"](p0i32,p1i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_string_get"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_debug_string": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_debug_string"](p0i32,p1i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_debug_string"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_throw": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_throw"](p0i32,p1i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_throw"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_rethrow": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_rethrow"](p0i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_rethrow"](p0i32);
/******/ },
/******/ "__wbindgen_closure_wrapper28": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_closure_wrapper28"](p0i32,p1i32,p2i32);
/******/ "__wbindgen_closure_wrapper107": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_closure_wrapper107"](p0i32,p1i32,p2i32);
/******/ },
/******/ "__wbindgen_closure_wrapper26": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_closure_wrapper26"](p0i32,p1i32,p2i32);
/******/ "__wbindgen_closure_wrapper109": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_closure_wrapper109"](p0i32,p1i32,p2i32);
/******/ }
/******/ }
/******/ };
Expand Down Expand Up @@ -191,7 +188,7 @@
/******/
/******/ // Fetch + compile chunk loading for webassembly
/******/
/******/ var wasmModules = {"1":["../web_pkg/jsonpath_wasm_bg.wasm"]}[chunkId] || [];
/******/ var wasmModules = {"0":["../web_pkg/jsonpath_wasm_bg.wasm"]}[chunkId] || [];
/******/
/******/ wasmModules.forEach(function(wasmModuleId) {
/******/ var installedWasmModuleData = installedWasmModules[wasmModuleId];
Expand All @@ -201,7 +198,7 @@
/******/ promises.push(installedWasmModuleData);
/******/ else {
/******/ var importObject = wasmImportObjects[wasmModuleId]();
/******/ var req = fetch(__webpack_require__.p + "" + {"../web_pkg/jsonpath_wasm_bg.wasm":"a9530753c3f0aa3c5ead"}[wasmModuleId] + ".module.wasm");
/******/ var req = fetch(__webpack_require__.p + "" + {"../web_pkg/jsonpath_wasm_bg.wasm":"f9980c137fc7d5609726"}[wasmModuleId] + ".module.wasm");
/******/ var promise;
/******/ if(importObject instanceof Promise && typeof WebAssembly.compileStreaming === 'function') {
/******/ promise = Promise.all([WebAssembly.compileStreaming(req), importObject]).then(function(items) {
Expand Down Expand Up @@ -302,7 +299,7 @@
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// A dependency graph that contains any wasm must all be imported\n// asynchronously. This `bootstrap.js` file does the single async import, so\n// that no one else needs to worry about it again.\nPromise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1)]).then(__webpack_require__.bind(null, /*! ./index.js */ \"./index.js\"))\n .catch(e => console.error(\"Error importing `index.js`:\", e));\n\n//# sourceURL=webpack:///./bootstrap.js?");
eval("// A dependency graph that contains any wasm must all be imported\n// asynchronously. This `bootstrap.js` file does the single async import, so\n// that no one else needs to worry about it again.\nPromise.all(/*! import() */[__webpack_require__.e(1), __webpack_require__.e(0)]).then(__webpack_require__.bind(null, /*! ./index.js */ \"./index.js\"))\n .catch(e => console.error(\"Error importing `index.js`:\", e));\n\n//# sourceURL=webpack:///./bootstrap.js?");

/***/ })

Expand Down
Binary file added docs/bench/f9980c137fc7d5609726.module.wasm
Binary file not shown.
55 changes: 26 additions & 29 deletions docs/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,51 +54,48 @@
/******/ var wasmImportObjects = {
/******/ "../web_pkg/jsonpath_wasm_bg.wasm": function() {
/******/ return {
/******/ "./jsonpath_wasm.js": {
/******/ "__wbindgen_json_parse": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_json_parse"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_json_serialize": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_json_serialize"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_cb_forget": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_cb_forget"](p0i32);
/******/ },
/******/ "__wbg_error_e7d3e8dbb31828c8": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbg_error_e7d3e8dbb31828c8"](p0i32,p1i32);
/******/ "./jsonpath_wasm_bg.js": {
/******/ "__wbg_error_c4abc40e0406628b": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbg_error_c4abc40e0406628b"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_object_drop_ref": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_object_drop_ref"](p0i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_object_drop_ref"](p0i32);
/******/ },
/******/ "__wbindgen_object_clone_ref": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_object_clone_ref"](p0i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_object_clone_ref"](p0i32);
/******/ },
/******/ "__wbindgen_string_new": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_string_new"](p0i32,p1i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_string_new"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_json_parse": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_json_parse"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_json_serialize": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_json_serialize"](p0i32,p1i32);
/******/ },
/******/ "__wbg_call_1ad0eb4a7ab279eb": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbg_call_1ad0eb4a7ab279eb"](p0i32,p1i32,p2i32);
/******/ "__wbg_call_bf745b1758bb6693": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbg_call_bf745b1758bb6693"](p0i32,p1i32,p2i32);
/******/ },
/******/ "__wbindgen_is_string": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_is_string"](p0i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_is_string"](p0i32);
/******/ },
/******/ "__wbindgen_string_get": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_string_get"](p0i32,p1i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_string_get"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_debug_string": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_debug_string"](p0i32,p1i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_debug_string"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_throw": function(p0i32,p1i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_throw"](p0i32,p1i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_throw"](p0i32,p1i32);
/******/ },
/******/ "__wbindgen_rethrow": function(p0i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_rethrow"](p0i32);
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_rethrow"](p0i32);
/******/ },
/******/ "__wbindgen_closure_wrapper28": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_closure_wrapper28"](p0i32,p1i32,p2i32);
/******/ "__wbindgen_closure_wrapper107": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_closure_wrapper107"](p0i32,p1i32,p2i32);
/******/ },
/******/ "__wbindgen_closure_wrapper26": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm.js"].exports["__wbindgen_closure_wrapper26"](p0i32,p1i32,p2i32);
/******/ "__wbindgen_closure_wrapper109": function(p0i32,p1i32,p2i32) {
/******/ return installedModules["../web_pkg/jsonpath_wasm_bg.js"].exports["__wbindgen_closure_wrapper109"](p0i32,p1i32,p2i32);
/******/ }
/******/ }
/******/ };
Expand Down Expand Up @@ -191,7 +188,7 @@
/******/
/******/ // Fetch + compile chunk loading for webassembly
/******/
/******/ var wasmModules = {"1":["../web_pkg/jsonpath_wasm_bg.wasm"]}[chunkId] || [];
/******/ var wasmModules = {"0":["../web_pkg/jsonpath_wasm_bg.wasm"]}[chunkId] || [];
/******/
/******/ wasmModules.forEach(function(wasmModuleId) {
/******/ var installedWasmModuleData = installedWasmModules[wasmModuleId];
Expand All @@ -201,7 +198,7 @@
/******/ promises.push(installedWasmModuleData);
/******/ else {
/******/ var importObject = wasmImportObjects[wasmModuleId]();
/******/ var req = fetch(__webpack_require__.p + "" + {"../web_pkg/jsonpath_wasm_bg.wasm":"a9530753c3f0aa3c5ead"}[wasmModuleId] + ".module.wasm");
/******/ var req = fetch(__webpack_require__.p + "" + {"../web_pkg/jsonpath_wasm_bg.wasm":"f9980c137fc7d5609726"}[wasmModuleId] + ".module.wasm");
/******/ var promise;
/******/ if(importObject instanceof Promise && typeof WebAssembly.compileStreaming === 'function') {
/******/ promise = Promise.all([WebAssembly.compileStreaming(req), importObject]).then(function(items) {
Expand Down Expand Up @@ -302,7 +299,7 @@
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// A dependency graph that contains any wasm must all be imported\n// asynchronously. This `bootstrap.js` file does the single async import, so\n// that no one else needs to worry about it again.\nPromise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1)]).then(__webpack_require__.bind(null, /*! ./index.js */ \"./index.js\"))\n .catch(e => console.error(\"Error importing `index.js`:\", e));\n\n\n//# sourceURL=webpack:///./bootstrap.js?");
eval("// A dependency graph that contains any wasm must all be imported\n// asynchronously. This `bootstrap.js` file does the single async import, so\n// that no one else needs to worry about it again.\n__webpack_require__.e(/*! import() */ 0).then(__webpack_require__.bind(null, /*! ./index.js */ \"./index.js\"))\n .catch(e => console.error(\"Error importing `index.js`:\", e));\n\n\n//# sourceURL=webpack:///./bootstrap.js?");

/***/ })

Expand Down
Binary file added docs/f9980c137fc7d5609726.module.wasm
Binary file not shown.
Loading

0 comments on commit d77c066

Please sign in to comment.