@muze-nl/simplystore 0.1.7 → 0.2.0

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 +2 -2
  2. package/src/server.mjs +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muze-nl/simplystore",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "main": "src/server.mjs",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "homepage": "https://github.com/simplyedit/simplystore#readme",
17
17
  "dependencies": {
18
18
  "@muze-nl/jsontag": "^0.8.4",
19
- "array-where-select": "^0.1.0",
19
+ "array-where-select": "^0.2.0",
20
20
  "codemirror": "^6.0.1",
21
21
  "express": "^4.18.1",
22
22
  "json-pointer": "^0.6.2",
package/src/server.mjs CHANGED
@@ -4,7 +4,7 @@ import pointer from 'json-pointer'
4
4
  import JSONTag from '@muze-nl/jsontag'
5
5
  import {JSONPath} from 'jsonpath-plus'
6
6
  import {VM} from 'vm2'
7
- import _ from 'array-where-select'
7
+ import {_,from} from 'array-where-select'
8
8
  import { fileURLToPath } from 'url'
9
9
  import path from 'path'
10
10
 
@@ -194,14 +194,14 @@ async function main(options) {
194
194
  data: result,
195
195
  meta: meta,
196
196
  _: _,
197
+ from: from,
197
198
  console: connectConsole(res),
198
199
  JSONTag: JSONTag,
199
200
  request: {
200
201
  method: req.method,
201
202
  url: req.originalUrl,
202
203
  query: req.query
203
- },
204
- Array: Array
204
+ }
205
205
  },
206
206
  wasm: false
207
207
  })