aurelia-json
Advanced tools
Comparing version 0.2.1 to 0.2.2
export declare class JsonPatch { | ||
private operations; | ||
constructor(operations?: any[]); | ||
readonly length: number; | ||
add(path: string, value: any, index?: number): JsonPatch; | ||
@@ -5,0 +6,0 @@ remove(path: string, index?: number): JsonPatch; |
@@ -7,2 +7,9 @@ "use strict"; | ||
} | ||
Object.defineProperty(JsonPatch.prototype, "length", { | ||
get: function () { | ||
return this.operations.length; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
JsonPatch.prototype.add = function (path, value, index) { | ||
@@ -9,0 +16,0 @@ if (index === void 0) { index = -1; } |
{ | ||
"name": "aurelia-json", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A JSON plugin for Aurelia based projects.", | ||
@@ -26,6 +26,6 @@ "keywords": [ | ||
"dependencies": { | ||
"aurelia-dependency-injection": "^1.0.0-beta.2.1.1", | ||
"aurelia-framework": "^1.0.0-beta.2.0.1", | ||
"aurelia-http-client": "^1.0.0-beta.2.0.1", | ||
"aurelia-http-utils": "^0.1.4" | ||
"aurelia-dependency-injection": "^1.0.0-rc.1.0.0", | ||
"aurelia-framework": "^1.0.0-rc.1.0.0", | ||
"aurelia-http-client": "^1.0.0-rc.1.0.0", | ||
"aurelia-http-utils": "^0.2.0" | ||
}, | ||
@@ -35,8 +35,8 @@ "devDependencies": { | ||
"babel-register": "^6.9.0", | ||
"del": "^2.2.0", | ||
"del": "^2.2.1", | ||
"gulp": "^3.9.1", | ||
"gulp-jasmine": "^2.3.0", | ||
"gulp-jasmine": "^2.4.0", | ||
"gulp-tsb": "^1.10.4", | ||
"jasmine": "^2.4.1", | ||
"jasmine-reporters": "^2.1.1", | ||
"jasmine-reporters": "^2.2.0", | ||
"run-sequence": "^1.2.1", | ||
@@ -43,0 +43,0 @@ "typescript": "^1.8.10", |
@@ -9,2 +9,6 @@ export class JsonPatch { | ||
get length() { | ||
return this.operations.length; | ||
} | ||
public add(path: string, value: any, index: number = -1): JsonPatch { | ||
@@ -11,0 +15,0 @@ this.operations.push({ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
52071
785
0
+ Addedaurelia-http-utils@0.2.2(transitive)
- Removedaurelia-http-utils@0.1.4(transitive)
Updatedaurelia-http-utils@^0.2.0