Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

laravel-vue2-validator

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-vue2-validator - npm Package Compare versions

Comparing version 0.0.9-beta-6 to 0.0.9-beta-7

4

dist/index.js

@@ -35,3 +35,3 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:!0}),exports.Validator=void 0;var _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_createClass=function(){function defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(a,b,c){return b&&defineProperties(a.prototype,b),c&&defineProperties(a,c),a}}();exports.install=install;var _ErrorComponent=require('./ErrorComponent.vue'),_ErrorComponent2=_interopRequireDefault(_ErrorComponent),_axios=require('axios'),_axios2=_interopRequireDefault(_axios);function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}var Validator=function(){function Validator(){_classCallCheck(this,Validator),this.errors={},this.busy=!1,this.success=!1}/**

* @param {KeyboardEvent} event
*/},{key:'onKeydown',value:function onKeydown(a){var b=a.target.name;b&&this.clear(b)}}]),Validator}();exports.default=Validator;function install(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=_extends({},b),d=new Validator(c);a.component('error',_ErrorComponent2.default),a.http&&a.http.interceptors.push(function(a,b){b(function(a){422===a.status&&d.fill(a.body)})}),_axios2.default&&_axios2.default.interceptors.response.use(function(a){return a},function(a){var b=a.response;if(422===b.status){var c=b.data.errors.data,e=c===void 0?{}:c;d.fill(e.errors)}return Promise.reject(a)}),a.mixin({beforeCreate:function beforeCreate(){this.$options.$errors={},a.util.defineReactive(this.$options,'$errors',d),this.$options.computed||(this.$options.computed={}),this.$options.computed.$errors=function(){return this.$options.$errors}}})}Validator.install=install;var validator=new Validator;exports.Validator=validator;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJpbnN0YWxsIiwiVmFsaWRhdG9yIiwiZXJyb3JzIiwiYnVzeSIsInN1Y2Nlc3MiLCJmaWVsZCIsImhhcyIsImtleSIsInZhbHVlcyIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwiZmlsbCIsImV2ZW50IiwibmFtZSIsInRhcmdldCIsImNsZWFyIiwiVnVlIiwib3B0aW9ucyIsImRlZmF1bHRzIiwidmFsaWRhdG9yIiwiY29tcG9uZW50IiwiRXJyb3JDb21wb25lbnQiLCJodHRwIiwiaW50ZXJjZXB0b3JzIiwicHVzaCIsInJlcXVlc3QiLCJuZXh0Iiwic3RhdHVzIiwicmVzcG9uc2UiLCJib2R5IiwiYXhpb3MiLCJ1c2UiLCJlcnJvciIsImRhdGEiLCJQcm9taXNlIiwicmVqZWN0IiwibWl4aW4iLCJiZWZvcmVDcmVhdGUiLCIkb3B0aW9ucyIsIiRlcnJvcnMiLCJ1dGlsIiwiZGVmaW5lUmVhY3RpdmUiLCJjb21wdXRlZCJdLCJtYXBwaW5ncyI6IjBqQkErR2dCQSxPLENBQUFBLE8sb1dBNUdLQyxVLFlBQ25CLG9CQUFlLGlDQUNiLEtBQUtDLE1BQUwsQ0FBYyxFQURELENBRWIsS0FBS0MsSUFBTCxHQUZhLENBR2IsS0FBS0MsT0FBTCxHQUNELENBRUQ7Ozt5RUFJcUIsSUFBZEMsRUFBYyx3REFBTixJQUFNLENBQ25CLE1BQU8sQ0FBQyxLQUFLQyxHQUFMLENBQVNELENBQVQsQ0FDVCxDQUVEOzs7a0RBSXdCLElBQWRBLEVBQWMsd0R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wdGlvbnMuJGVycm9ycztcbiAgICAgIH07XG4gICAgfSxcbiAgfSlcbn1cblxuVmFsaWRhdG9yLmluc3RhbGwgPSBpbnN0YWxsXG5cbmNvbnN0IHZhbGlkYXRvciA9IG5ldyBWYWxpZGF0b3IoKTtcblxuZXhwb3J0IHsgdmFsaWRhdG9yIGFzIFZhbGlkYXRvciB9XG4iXX0=
*/},{key:'onKeydown',value:function onKeydown(a){var b=a.target.name;b&&this.clear(b)}}]),Validator}();exports.default=Validator;function install(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=_extends({},b),d=new Validator(c);a.component('error',_ErrorComponent2.default),a.http&&a.http.interceptors.push(function(a,b){b(function(a){422===a.status&&d.fill(a.body)})}),_axios2.default&&_axios2.default.interceptors.response.use(function(a){return a},function(a){var b=a.response;if(422===b.status){var c=b.data,e=c===void 0?{}:c;d.fill(e.errors)}return Promise.reject(a)}),a.mixin({beforeCreate:function beforeCreate(){this.$options.$errors={},a.util.defineReactive(this.$options,'$errors',d),this.$options.computed||(this.$options.computed={}),this.$options.computed.$errors=function(){return this.$options.$errors}}})}Validator.install=install;var validator=new Validator;exports.Validator=validator;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJpbnN0YWxsIiwiVmFsaWRhdG9yIiwiZXJyb3JzIiwiYnVzeSIsInN1Y2Nlc3MiLCJmaWVsZCIsImhhcyIsImtleSIsInZhbHVlcyIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwiZmlsbCIsImV2ZW50IiwibmFtZSIsInRhcmdldCIsImNsZWFyIiwiVnVlIiwib3B0aW9ucyIsImRlZmF1bHRzIiwidmFsaWRhdG9yIiwiY29tcG9uZW50IiwiRXJyb3JDb21wb25lbnQiLCJodHRwIiwiaW50ZXJjZXB0b3JzIiwicHVzaCIsInJlcXVlc3QiLCJuZXh0Iiwic3Rhd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ci5maWxsKGRhdGEuZXJyb3JzKVxuICAgICAgfVxuICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KGVycm9yKTtcbiAgICB9KTtcbiAgfVxuICBWdWUubWl4aW4oe1xuICAgIGJlZm9yZUNyZWF0ZSAoKSB7XG4gICAgICB0aGlzLiRvcHRpb25zLiRlcnJvcnMgPSB7fTtcbiAgICAgIFZ1ZS51dGlsLmRlZmluZVJlYWN0aXZlKHRoaXMuJG9wdGlvbnMsICckZXJyb3JzJywgdmFsaWRhdG9yKTtcbiAgICAgIGlmICghdGhpcy4kb3B0aW9ucy5jb21wdXRlZCkge1xuICAgICAgICB0aGlzLiRvcHRpb25zLmNvbXB1dGVkID0ge31cbiAgICAgIH1cbiAgICAgIHRoaXMuJG9wdGlvbnMuY29tcHV0ZWRbXCIkZXJyb3JzXCJdID0gZnVuY3Rpb24gKCkge1xuICAgICAgICByZXR1cm4gdGhpcy4kb3B0aW9ucy4kZXJyb3JzO1xuICAgICAgfTtcbiAgICB9LFxuICB9KVxufVxuXG5WYWxpZGF0b3IuaW5zdGFsbCA9IGluc3RhbGxcblxuY29uc3QgdmFsaWRhdG9yID0gbmV3IFZhbGlkYXRvcigpO1xuXG5leHBvcnQgeyB2YWxpZGF0b3IgYXMgVmFsaWRhdG9yIH1cbiJdfQ==
{
"name": "laravel-vue2-validator",
"version": "0.0.9-beta-6",
"version": "0.0.9-beta-7",
"description": " Simple package to display error in vue from laravel validation",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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