aurelia-json
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -22,6 +22,2 @@ "use strict"; | ||
switch (contentType) { | ||
case aurelia_http_utils_1.MediaType.APPLICATION_JSON: | ||
var jsonEncoder = new json_encoder_1.JsonEncoder(); | ||
message.replacer = jsonEncoder.replacer.bind(jsonEncoder); | ||
break; | ||
case aurelia_http_utils_1.MediaType.APPLICATION_JSON_PATCH: | ||
@@ -34,2 +30,6 @@ var patch = message.content; | ||
break; | ||
case aurelia_http_utils_1.MediaType.APPLICATION_JSON: | ||
default: | ||
var jsonEncoder = new json_encoder_1.JsonEncoder(); | ||
message.replacer = jsonEncoder.replacer.bind(jsonEncoder); | ||
} | ||
@@ -36,0 +36,0 @@ return message; |
{ | ||
"name": "aurelia-json", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "A JSON plugin for Aurelia based projects.", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"aurelia-dependency-injection": "^1.0.0", | ||
"aurelia-framework": "^1.0.1", | ||
"aurelia-framework": "^1.0.2", | ||
"aurelia-http-client": "^1.0.0", | ||
@@ -33,10 +33,10 @@ "aurelia-http-utils": "^0.2.1" | ||
"devDependencies": { | ||
"babel-preset-es2015": "^6.13.2", | ||
"babel-register": "^6.11.6", | ||
"del": "^2.2.1", | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-register": "^6.14.0", | ||
"del": "^2.2.2", | ||
"gulp": "^3.9.1", | ||
"gulp-jasmine": "^2.4.0", | ||
"gulp-jasmine": "^2.4.1", | ||
"gulp-sass": "^2.3.2", | ||
"gulp-typescript": "^2.13.6", | ||
"jasmine": "^2.4.1", | ||
"jasmine": "^2.5.0", | ||
"jasmine-reporters": "^2.2.0", | ||
@@ -43,0 +43,0 @@ "merge2": "^1.0.2", |
@@ -20,6 +20,2 @@ import {autoinject} from "aurelia-dependency-injection"; | ||
switch (contentType) { | ||
case MediaType.APPLICATION_JSON: | ||
let jsonEncoder = new JsonEncoder(); | ||
message.replacer = jsonEncoder.replacer.bind(jsonEncoder); | ||
break; | ||
case MediaType.APPLICATION_JSON_PATCH: | ||
@@ -32,2 +28,6 @@ let patch: JsonPatch = message.content; | ||
break; | ||
case MediaType.APPLICATION_JSON: | ||
default: | ||
let jsonEncoder = new JsonEncoder(); | ||
message.replacer = jsonEncoder.replacer.bind(jsonEncoder); | ||
} | ||
@@ -34,0 +34,0 @@ |
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
Updatedaurelia-framework@^1.0.2