orange-orm 4.1.4 → 4.2.0-beta.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/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -139,7 +139,7 @@ getRows();
139
139
  async function getRows() {
140
140
  const orders = await db.order.getAll({
141
141
  where: x => x.lines.any(line => line.product.contains('broomstick'))
142
- .and(db.order.customer.name.startsWith('Harry')),
142
+ .and(x.customer.name.startsWith('Harry')),
143
143
  lines: {
144
144
  packages: true
145
145
  },
@@ -831,7 +831,7 @@ async function update() {
831
831
  };
832
832
 
833
833
  const modified = JSON.parse(JSON.stringify(original));
834
- deliveryAddress.name = 'Roger';
834
+ modified.deliveryAddress.name = 'Roger';
835
835
  modified.lines.push({ product: 'Piano', amount: 800 });
836
836
 
837
837
  const order = await db.order.updateChanges(modified, original, { customer: true, deliveryAddress: true, lines: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orange-orm",
3
- "version": "4.1.4",
3
+ "version": "4.2.0-beta.0",
4
4
  "main": "./src/index.js",
5
5
  "browser": "./src/client/index.mjs",
6
6
  "bin": {