@spinajs/orm-mssql 2.0.82 → 2.0.84

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/lib/compilers.js +7 -7
  2. package/package.json +5 -5
package/lib/compilers.js CHANGED
@@ -46,15 +46,15 @@ let MsSqlOnDuplicateQueryCompiler = class MsSqlOnDuplicateQueryCompiler extends
46
46
  });
47
47
  return {
48
48
  bindings: wBindings.concat(bindings),
49
- expression: `MERGE INTO ${table} WITH (HOLDLOCK) AS target
49
+ expression: `MERGE INTO ${table} WITH (HOLDLOCK) AS target
50
50
  USING (SELECT * FROM ${table} WHERE ${this._builder.getColumn().map((c) => {
51
51
  return `${c} = ?`;
52
- })}) as source
53
- ON (target.${descriptor.PrimaryKey} = source.${descriptor.PrimaryKey})
54
- WHEN MATCHED
55
- THEN UPDATE
56
- SET ${columns}
57
- WHEN NOT MATCHED
52
+ })}) as source
53
+ ON (target.${descriptor.PrimaryKey} = source.${descriptor.PrimaryKey})
54
+ WHEN MATCHED
55
+ THEN UPDATE
56
+ SET ${columns}
57
+ WHEN NOT MATCHED
58
58
  THEN `.replace(/(\r\n|\n|\r)/gm, ''),
59
59
  };
60
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spinajs/orm-mssql",
3
- "version": "2.0.82",
3
+ "version": "2.0.84",
4
4
  "description": "orm mssql integration",
5
5
  "exports": "./lib/index.js",
6
6
  "type": "module",
@@ -48,10 +48,10 @@
48
48
  "chai-as-promised": "^7.1.1"
49
49
  },
50
50
  "dependencies": {
51
- "@spinajs/configuration": "^2.0.82",
52
- "@spinajs/di": "^2.0.82",
53
- "@spinajs/orm": "^2.0.82",
54
- "@spinajs/orm-sql": "^2.0.82",
51
+ "@spinajs/configuration": "^2.0.84",
52
+ "@spinajs/di": "^2.0.84",
53
+ "@spinajs/orm": "^2.0.84",
54
+ "@spinajs/orm-sql": "^2.0.84",
55
55
  "mssql": "^9.1.1"
56
56
  },
57
57
  "gitHead": "002dc553b0ffffd72193d0121ac425a4083bc9ee"