UNPKG
@dooboostore/simple-boot-http-server
Version:
latest (1.0.22)
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
back end http server frameworks
github.com/dooboostore-develop/packages
@dooboostore/simple-boot-http-server
/
models
/
method
/
patch
/
PatchJson.js
11 lines
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
jsonpatch
from
'fast-json-patch'
;
export
class
PatchJson
{
constructor
(
patch
) {
this
.
patch
= patch; }
apply
(
obj
) { obj = jsonpatch.
applyPatch
(obj,
this
.
patch
).
newDocument
;
return
obj; } }
//# sourceMappingURL=PatchJson.js.map