theprogrammablemind 7.7.0-beta.13 → 7.7.0-beta.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +10 -2
package/package.json CHANGED
@@ -65,6 +65,6 @@
65
65
  "json-stable-stringify": "^1.0.1",
66
66
  "node-fetch": "^2.6.1"
67
67
  },
68
- "version": "7.7.0-beta.13",
68
+ "version": "7.7.0-beta.15",
69
69
  "license": "ISC"
70
70
  }
package/src/config.js CHANGED
@@ -984,9 +984,17 @@ class Config {
984
984
  const query = queryOrConfig
985
985
  return query
986
986
  } else if (typeof queryOrConfig == 'function') {
987
- return { apply: queryOrConfig.toString() }
987
+ if (options.isModule) {
988
+ return { apply: 'function in the browser has webpack rewrites so can not be compared' }
989
+ } else {
990
+ return { apply: queryOrConfig.toString() }
991
+ }
988
992
  } else if (queryOrConfig.apply) {
989
- return { apply: queryOrConfig.apply }
993
+ if (options.isModule) {
994
+ return { apply: 'function in the browser has webpack rewrites so can not be compared' }
995
+ } else {
996
+ return { apply: queryOrConfig.apply }
997
+ }
990
998
  } else {
991
999
  const config = { ...queryOrConfig }
992
1000
  delete config.where