update
This commit is contained in:
parent
dfd3df544c
commit
3de5485650
@ -55,7 +55,7 @@ export class DatabaseCrudHandler extends HttpHandler implements CrudHandler {
|
|||||||
cm.update ();
|
cm.update ();
|
||||||
|
|
||||||
const dm = new this.dm;
|
const dm = new this.dm;
|
||||||
dm.apply (cm);
|
dm.assign (cm);
|
||||||
await dm.write ();
|
await dm.write ();
|
||||||
|
|
||||||
res.status (http.status_created)
|
res.status (http.status_created)
|
||||||
@ -107,10 +107,10 @@ export class DatabaseCrudHandler extends HttpHandler implements CrudHandler {
|
|||||||
const cm = new this.cm (dm.get_data ());
|
const cm = new this.cm (dm.get_data ());
|
||||||
cm.update ();
|
cm.update ();
|
||||||
|
|
||||||
cm.apply_object (body_data);
|
cm.assign_object (body_data);
|
||||||
cm.update ();
|
cm.update ();
|
||||||
|
|
||||||
dm.apply (cm);
|
dm.assign (cm);
|
||||||
|
|
||||||
const written = await dm.write ();
|
const written = await dm.write ();
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ava/typescript": "^1.1.1",
|
"@ava/typescript": "^1.1.1",
|
||||||
"@scode/eslint-config-ts": "^1.0.27",
|
"@scode/eslint-config-ts": "^1.0.29",
|
||||||
"@stryker-mutator/core": "^3.1.0",
|
"@stryker-mutator/core": "^3.1.0",
|
||||||
"@stryker-mutator/javascript-mutator": "^3.1.0",
|
"@stryker-mutator/javascript-mutator": "^3.1.0",
|
||||||
"ava": "^3.8.1",
|
"ava": "^3.8.1",
|
||||||
@ -32,8 +32,8 @@
|
|||||||
"typescript": "^3.8.3"
|
"typescript": "^3.8.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@scode/consts": "^1.1.7",
|
"@scode/consts": "^1.1.9",
|
||||||
"@scode/modelling": "^1.0.16",
|
"@scode/modelling": "^1.0.19",
|
||||||
"@types/express": "^4.17.6",
|
"@types/express": "^4.17.6",
|
||||||
"express": "^4.17.1"
|
"express": "^4.17.1"
|
||||||
},
|
},
|
||||||
|
60
yarn.lock
60
yarn.lock
@ -257,7 +257,7 @@
|
|||||||
"@nodelib/fs.scandir" "2.1.3"
|
"@nodelib/fs.scandir" "2.1.3"
|
||||||
fastq "^1.6.0"
|
fastq "^1.6.0"
|
||||||
|
|
||||||
"@scode/consts@^1.1.7":
|
"@scode/consts@^1.1.9":
|
||||||
version "1.1.9"
|
version "1.1.9"
|
||||||
resolved "https://npm.scode.ovh/@scode%2fconsts/-/consts-1.1.9.tgz#7ad15f237c6c0323003f625a68a646833a2959ad"
|
resolved "https://npm.scode.ovh/@scode%2fconsts/-/consts-1.1.9.tgz#7ad15f237c6c0323003f625a68a646833a2959ad"
|
||||||
integrity sha512-xmDqQCl719l6EoHq2YPcEHelh0l6L8P8RwxMNyhqHGRxg8qdhx6xe3J1eRhkqznMg0yOMatLTl0fCLgspEBQ0A==
|
integrity sha512-xmDqQCl719l6EoHq2YPcEHelh0l6L8P8RwxMNyhqHGRxg8qdhx6xe3J1eRhkqznMg0yOMatLTl0fCLgspEBQ0A==
|
||||||
@ -270,7 +270,7 @@
|
|||||||
"@scode/eslint-config" "^2.0.1"
|
"@scode/eslint-config" "^2.0.1"
|
||||||
eslint-plugin-import "^2.20.1"
|
eslint-plugin-import "^2.20.1"
|
||||||
|
|
||||||
"@scode/eslint-config-ts@^1.0.27":
|
"@scode/eslint-config-ts@^1.0.29":
|
||||||
version "1.0.29"
|
version "1.0.29"
|
||||||
resolved "https://npm.scode.ovh/@scode%2feslint-config-ts/-/eslint-config-ts-1.0.29.tgz#83eb8efaa757938420600ec848514dcd7ea40767"
|
resolved "https://npm.scode.ovh/@scode%2feslint-config-ts/-/eslint-config-ts-1.0.29.tgz#83eb8efaa757938420600ec848514dcd7ea40767"
|
||||||
integrity sha512-bgTRMYpHOdDyUPcuHaBQitlBa9rYWLOUyO7M9HJ3Ct8ro0RxcmiSSTRSbolpj46OymPFPNOheX6Gb/RfTpT7Ow==
|
integrity sha512-bgTRMYpHOdDyUPcuHaBQitlBa9rYWLOUyO7M9HJ3Ct8ro0RxcmiSSTRSbolpj46OymPFPNOheX6Gb/RfTpT7Ow==
|
||||||
@ -288,10 +288,10 @@
|
|||||||
eslint-plugin-node "^11.0.0"
|
eslint-plugin-node "^11.0.0"
|
||||||
eslint-plugin-sort-requires-by-path "^1.0.2"
|
eslint-plugin-sort-requires-by-path "^1.0.2"
|
||||||
|
|
||||||
"@scode/modelling@^1.0.16":
|
"@scode/modelling@^1.0.19":
|
||||||
version "1.0.18"
|
version "1.0.20"
|
||||||
resolved "https://npm.scode.ovh/@scode%2fmodelling/-/modelling-1.0.18.tgz#abe8a9536fb9df2c29eccf6555c6ad8440db1c73"
|
resolved "https://npm.scode.ovh/@scode%2fmodelling/-/modelling-1.0.20.tgz#2d66efee230639ef569807e0642653c3a6fc0708"
|
||||||
integrity sha512-M5aNzNSIhqqXjUU87phWMtoRA9Fy+zorsSJ2KTus8FEkIXdkJLhjTJSlA+NJHoHT3JZNcMt536n+id22AkbAdg==
|
integrity sha512-m/8Gk+ISBUSMe3OzrT1S5wGun0xWev9J1Moa9fcrchtWnpCIO4sXMi4nw9zWaGRQ+RoHRgfaR0OnLBiXzuG+Hg==
|
||||||
|
|
||||||
"@sindresorhus/is@^0.14.0":
|
"@sindresorhus/is@^0.14.0":
|
||||||
version "0.14.0"
|
version "0.14.0"
|
||||||
@ -461,39 +461,39 @@
|
|||||||
"@types/mime" "*"
|
"@types/mime" "*"
|
||||||
|
|
||||||
"@typescript-eslint/eslint-plugin@^2.26.0":
|
"@typescript-eslint/eslint-plugin@^2.26.0":
|
||||||
version "2.30.0"
|
version "2.31.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.30.0.tgz#312a37e80542a764d96e8ad88a105316cdcd7b05"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.31.0.tgz#942c921fec5e200b79593c71fafb1e3f57aa2e36"
|
||||||
integrity sha512-PGejii0qIZ9Q40RB2jIHyUpRWs1GJuHP1pkoCiaeicfwO9z7Fx03NQzupuyzAmv+q9/gFNHu7lo1ByMXe8PNyg==
|
integrity sha512-iIC0Pb8qDaoit+m80Ln/aaeu9zKQdOLF4SHcGLarSeY1gurW6aU4JsOPMjKQwXlw70MvWKZQc6S2NamA8SJ/gg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/experimental-utils" "2.30.0"
|
"@typescript-eslint/experimental-utils" "2.31.0"
|
||||||
functional-red-black-tree "^1.0.1"
|
functional-red-black-tree "^1.0.1"
|
||||||
regexpp "^3.0.0"
|
regexpp "^3.0.0"
|
||||||
tsutils "^3.17.1"
|
tsutils "^3.17.1"
|
||||||
|
|
||||||
"@typescript-eslint/experimental-utils@2.30.0":
|
"@typescript-eslint/experimental-utils@2.31.0":
|
||||||
version "2.30.0"
|
version "2.31.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.30.0.tgz#9845e868c01f3aed66472c561d4b6bac44809dd0"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.31.0.tgz#a9ec514bf7fd5e5e82bc10dcb6a86d58baae9508"
|
||||||
integrity sha512-L3/tS9t+hAHksy8xuorhOzhdefN0ERPDWmR9CclsIGOUqGKy6tqc/P+SoXeJRye5gazkuPO0cK9MQRnolykzkA==
|
integrity sha512-MI6IWkutLYQYTQgZ48IVnRXmLR/0Q6oAyJgiOror74arUMh7EWjJkADfirZhRsUMHeLJ85U2iySDwHTSnNi9vA==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/json-schema" "^7.0.3"
|
"@types/json-schema" "^7.0.3"
|
||||||
"@typescript-eslint/typescript-estree" "2.30.0"
|
"@typescript-eslint/typescript-estree" "2.31.0"
|
||||||
eslint-scope "^5.0.0"
|
eslint-scope "^5.0.0"
|
||||||
eslint-utils "^2.0.0"
|
eslint-utils "^2.0.0"
|
||||||
|
|
||||||
"@typescript-eslint/parser@^2.26.0":
|
"@typescript-eslint/parser@^2.26.0":
|
||||||
version "2.30.0"
|
version "2.31.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.30.0.tgz#7681c305a6f4341ae2579f5e3a75846c29eee9ce"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.31.0.tgz#beddd4e8efe64995108b229b2862cd5752d40d6f"
|
||||||
integrity sha512-9kDOxzp0K85UnpmPJqUzdWaCNorYYgk1yZmf4IKzpeTlSAclnFsrLjfwD9mQExctLoLoGAUXq1co+fbr+3HeFw==
|
integrity sha512-uph+w6xUOlyV2DLSC6o+fBDzZ5i7+3/TxAsH4h3eC64tlga57oMb96vVlXoMwjR/nN+xyWlsnxtbDkB46M2EPQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/eslint-visitor-keys" "^1.0.0"
|
"@types/eslint-visitor-keys" "^1.0.0"
|
||||||
"@typescript-eslint/experimental-utils" "2.30.0"
|
"@typescript-eslint/experimental-utils" "2.31.0"
|
||||||
"@typescript-eslint/typescript-estree" "2.30.0"
|
"@typescript-eslint/typescript-estree" "2.31.0"
|
||||||
eslint-visitor-keys "^1.1.0"
|
eslint-visitor-keys "^1.1.0"
|
||||||
|
|
||||||
"@typescript-eslint/typescript-estree@2.30.0":
|
"@typescript-eslint/typescript-estree@2.31.0":
|
||||||
version "2.30.0"
|
version "2.31.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.30.0.tgz#1b8e848b55144270255ffbfe4c63291f8f766615"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.31.0.tgz#ac536c2d46672aa1f27ba0ec2140d53670635cfd"
|
||||||
integrity sha512-nI5WOechrA0qAhnr+DzqwmqHsx7Ulr/+0H7bWCcClDhhWkSyZR5BmTvnBEyONwJCTWHfc5PAQExX24VD26IAVw==
|
integrity sha512-vxW149bXFXXuBrAak0eKHOzbcu9cvi6iNcJDzEtOkRwGHxJG15chiAQAwhLOsk+86p9GTr/TziYvw+H9kMaIgA==
|
||||||
dependencies:
|
dependencies:
|
||||||
debug "^4.1.1"
|
debug "^4.1.1"
|
||||||
eslint-visitor-keys "^1.1.0"
|
eslint-visitor-keys "^1.1.0"
|
||||||
@ -744,9 +744,9 @@ binary-extensions@^2.0.0:
|
|||||||
integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==
|
integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==
|
||||||
|
|
||||||
blueimp-md5@^2.10.0:
|
blueimp-md5@^2.10.0:
|
||||||
version "2.13.0"
|
version "2.14.0"
|
||||||
resolved "https://registry.yarnpkg.com/blueimp-md5/-/blueimp-md5-2.13.0.tgz#07314b0c64dda0bf1733f96ce40d5af94eb28965"
|
resolved "https://registry.yarnpkg.com/blueimp-md5/-/blueimp-md5-2.14.0.tgz#ac45786ede87d2a985478040d2ac38a9af7a16ac"
|
||||||
integrity sha512-lmp0m647R5e77ORduxLW5mISIDcvgJZa52vMBv5uVI3UmSWTQjkJsZVBfaFqQPw/QFogJwvY6e3Gl9nP+Loe+Q==
|
integrity sha512-fhX8JsIgugJ39g9MUJ4Y0S+WYd/1HATNVzW4nEVknP5uJU1mA7LZCV3OuVH9OvxpuYQXu6ttst0IYIlAyVfBQg==
|
||||||
|
|
||||||
body-parser@1.19.0:
|
body-parser@1.19.0:
|
||||||
version "1.19.0"
|
version "1.19.0"
|
||||||
@ -3107,9 +3107,9 @@ qs@6.7.0:
|
|||||||
integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==
|
integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==
|
||||||
|
|
||||||
qs@^6.9.1:
|
qs@^6.9.1:
|
||||||
version "6.9.3"
|
version "6.9.4"
|
||||||
resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.3.tgz#bfadcd296c2d549f1dffa560619132c977f5008e"
|
resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.4.tgz#9090b290d1f91728d3c22e54843ca44aea5ab687"
|
||||||
integrity sha512-EbZYNarm6138UKKq46tdx08Yo/q9ZhFoAXAI1meAFd2GtbRDhbZY2WQSICskT0c5q99aFzLG1D4nvTk9tqfXIw==
|
integrity sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ==
|
||||||
|
|
||||||
range-parser@~1.2.1:
|
range-parser@~1.2.1:
|
||||||
version "1.2.1"
|
version "1.2.1"
|
||||||
|
Reference in New Issue
Block a user