Socket
Socket
Sign inDemoInstall

angular-validated-resource

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-validated-resource - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

lib/index.js

@@ -68,3 +68,3 @@ // Generated by CoffeeScript 1.9.3

queryParams = getQueryParams(params, actionConfig.params, paramDefaults, actionUrl);
validate(queryParams, actionConfig.queryParamsSchema, "Query validation failed for action '" + actionName + "'");
validate(clean(queryParams), actionConfig.queryParamsSchema, "Query validation failed for action '" + actionName + "'");
resource = Resource["_" + actionName](params);

@@ -83,4 +83,4 @@ resource.$promise.then(function(response) {

queryParams = getQueryParams(params, actionConfig.params, paramDefaults, actionUrl);
validate(queryParams, actionConfig.queryParamsSchema, "Query validation failed for action '" + actionName + "'");
validate(body, actionConfig.requestBodySchema, "Request body validation failed for action '" + actionName + "'");
validate(clean(queryParams), actionConfig.queryParamsSchema, "Query validation failed for action '" + actionName + "'");
validate(clean(body), actionConfig.requestBodySchema, "Request body validation failed for action '" + actionName + "'");
resource = Resource["_" + actionName](params, body);

@@ -98,3 +98,3 @@ resource.$promise.then(function(response) {

queryParams = getQueryParams(params, actionConfig.params, paramDefaults, actionUrl);
validate(queryParams, actionConfig.queryParamsSchema, "Query validation failed for action '$" + actionName + "'");
validate(clean(queryParams), actionConfig.queryParamsSchema, "Query validation failed for action '$" + actionName + "'");
validate(clean(this), actionConfig.requestBodySchema, "Request body validation failed for action '$" + actionName + "'");

@@ -101,0 +101,0 @@ promise = this["$_" + actionName](params);

{
"name": "angular-validated-resource",
"version": "1.0.1",
"version": "1.0.2",
"description": "JSON Schema validation for angular resource",

@@ -5,0 +5,0 @@ "author": "Good Eggs <open-source@goodeggs.com>",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc