Skip to content

Commit

Permalink
fix node.js exports, resolve eval
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Jan 8, 2024
1 parent 5c54b46 commit a0a798d
Show file tree
Hide file tree
Showing 22 changed files with 32 additions and 55 deletions.
25 changes: 0 additions & 25 deletions .babelrc

This file was deleted.

6 changes: 3 additions & 3 deletions dist/flexsearch.bundle.debug.js
@@ -1,11 +1,11 @@
/**!
* FlexSearch.js v0.7.40 (Bundle)
* FlexSearch.js v0.7.41 (Bundle)
* Author and Copyright: Thomas Wilkerling
* Licence: Apache-2.0
* Hosted by Nextapps GmbH
* https://github.com/nextapps-de/flexsearch
*/
(function _factory(self){'use strict';
(function _f(self){'use strict';try{if(module)self=module}catch(e){}self._factory=_f;
var t;
function u(a) {
return "undefined" !== typeof a ? a : !0;
Expand Down Expand Up @@ -602,7 +602,7 @@ function Q(a) {
function wa(a, b, c) {
let d;
try {
d = b ? eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")') : a ? new Worker(URL.createObjectURL(new Blob(["onmessage=" + ua.toString()], {type:"text/javascript"}))) : new Worker(C(c) ? c : "worker/worker.js", {type:"module"});
d = b ? new (require("worker_threads")["Worker"])(__dirname + "/node/node.js") : a ? new Worker(URL.createObjectURL(new Blob(["onmessage=" + ua.toString()], {type:"text/javascript"}))) : new Worker(C(c) ? c : "worker/worker.js", {type:"module"});
} catch (e) {
}
return d;
Expand Down
6 changes: 3 additions & 3 deletions dist/flexsearch.bundle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/flexsearch.bundle.module.debug.js
@@ -1,5 +1,5 @@
/**!
* FlexSearch.js v0.7.40 (Bundle.module)
* FlexSearch.js v0.7.41 (Bundle.module)
* Author and Copyright: Thomas Wilkerling
* Licence: Apache-2.0
* Hosted by Nextapps GmbH
Expand Down Expand Up @@ -601,7 +601,7 @@ function T(a) {
function ua(a, b, c) {
let d;
try {
d = b ? eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")') : a ? new Worker(URL.createObjectURL(new Blob(["onmessage=" + sa.toString()], {type:"text/javascript"}))) : new Worker(C(c) ? c : "worker/worker.js", {type:"module"});
d = b ? new (require("worker_threads")["Worker"])(__dirname + "/node/node.js") : a ? new Worker(URL.createObjectURL(new Blob(["onmessage=" + sa.toString()], {type:"text/javascript"}))) : new Worker(C(c) ? c : "worker/worker.js", {type:"module"});
} catch (e) {
}
return d;
Expand Down
4 changes: 2 additions & 2 deletions dist/flexsearch.bundle.module.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/flexsearch.compact.debug.js
@@ -1,5 +1,5 @@
/**!
* FlexSearch.js v0.7.40 (Compact)
* FlexSearch.js v0.7.41 (Compact)
* Author and Copyright: Thomas Wilkerling
* Licence: Apache-2.0
* Hosted by Nextapps GmbH
Expand Down
2 changes: 1 addition & 1 deletion dist/flexsearch.compact.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/flexsearch.compact.module.debug.js
@@ -1,5 +1,5 @@
/**!
* FlexSearch.js v0.7.40 (Compact.module)
* FlexSearch.js v0.7.41 (Compact.module)
* Author and Copyright: Thomas Wilkerling
* Licence: Apache-2.0
* Hosted by Nextapps GmbH
Expand Down
2 changes: 1 addition & 1 deletion dist/flexsearch.compact.module.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/flexsearch.es5.debug.js
@@ -1,5 +1,5 @@
/**!
* FlexSearch.js v0.7.40 (Es5)
* FlexSearch.js v0.7.41 (Es5)
* Author and Copyright: Thomas Wilkerling
* Licence: Apache-2.0
* Hosted by Nextapps GmbH
Expand Down Expand Up @@ -973,7 +973,7 @@ function S(a) {
}
function Ca(a, b, c) {
try {
var d = b ? eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")') : a ? new Worker(URL.createObjectURL(new Blob(["onmessage=" + Aa.toString()], {type:"text/javascript"}))) : new Worker(E(c) ? c : "worker/worker.js", {type:"module"});
var d = b ? new (require("worker_threads")["Worker"])(__dirname + "/node/node.js") : a ? new Worker(URL.createObjectURL(new Blob(["onmessage=" + Aa.toString()], {type:"text/javascript"}))) : new Worker(E(c) ? c : "worker/worker.js", {type:"module"});
} catch (e) {
}
return d;
Expand Down

0 comments on commit a0a798d

Please sign in to comment.