@lowdefy/operators-js 4.0.0-alpha.19 → 4.0.0-alpha.22

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.
@@ -13,11 +13,16 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import { getFromObject } from '@lowdefy/operators';
16
- function _url_query({ arrayIndices , location , params , urlQuery }) {
16
+ import { urlQuery } from '@lowdefy/helpers';
17
+ function _url_query({ arrayIndices , globals , location , params }) {
18
+ const { window } = globals;
19
+ if (!window?.location) {
20
+ throw new Error(`Operator Error: Browser window.location not available for _url_query. Received: ${JSON.stringify(params)} at ${location}.`);
21
+ }
17
22
  return getFromObject({
18
23
  arrayIndices,
19
24
  location,
20
- object: urlQuery,
25
+ object: urlQuery.parse(window.location.search.slice(1)),
21
26
  operator: '_url_query',
22
27
  params
23
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/operators-js",
3
- "version": "4.0.0-alpha.19",
3
+ "version": "4.0.0-alpha.22",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -49,8 +49,8 @@
49
49
  "test": "jest --coverage"
50
50
  },
51
51
  "dependencies": {
52
- "@lowdefy/helpers": "4.0.0-alpha.19",
53
- "@lowdefy/operators": "4.0.0-alpha.19"
52
+ "@lowdefy/helpers": "4.0.0-alpha.22",
53
+ "@lowdefy/operators": "4.0.0-alpha.22"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@swc/cli": "0.1.57",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "5240a074f7225295a8c92aaf0236b7680c296b57"
65
+ "gitHead": "66ce29562c016a8bcf0cbea4bbbbb71d364ae995"
66
66
  }