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-4 to 0.0.9-beta-5

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',Errors),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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJpbnN0YWxsIiwiVmFsaWRhdG9yIiwiZXJyb3JzIiwiYnVzeSIsInN1Y2Nlc3MiLCJmaWVsZCIsImhhcyIsImtleSIsInZhbHVlcyIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwiZmlsbCIsImV2ZW50IiwibmFtZSIsInRhcmdldCIsImNsZWFyIiwiVnVlIiwib3B0aW9ucyIsImRlZmF1bHRzIiwidmFsaWRhdG9yIiwiY29tcG9uZW50IiwiRXJyb3JDb21wb25lbnQiLCJodHRwIiwiaW50ZXJjZXB0b3JzIiwicHVzaCIsInJlcXVlc3QiLCJuZXh0Iiwic3RhdHVzIiwicmVzcG9uc2UiLCJib2R5IiwiYXhpb3MiLCJ1c2UiLCJlcnJvciIsImRhdGEiLCJQcm9taXNlIiwicmVqZWN0IiwibWl4aW4iLCJiZWZvcmVDcmVhdGUiLCIkb3B0aW9ucyIsIiRlcnJvcnMiLCJ1dGlsIiwiZGVmaW5lUmVhY3RpdmUiLCJFcnJvcnMiLCJjb21wdXRlZCJdLCJtYXBwaW5ncyI6IjBqQkErR2dCQSxPLENBQUFBLE8sb1dBNUdLQyxVLFlBQ25CLG9CQUFlLGlDQUNiLEtBQUtDLE1BQUwsQ0FBYyxFQURELENBRWIsS0FBS0MsSUFBTCxHQUZhLENBR2IsS0FBS0MsT0FBTCxHQUNELENBRUQ7Ozt5RUFJcUIsSUFBZEMsRUFBYyx3REFBTixJQUFNLENBQ25CLE1BQU8sQ0FBQyxLQUFLQyxHQUFMLENBQVNELENBQVQsQ0FDVCxDQUVEOzs7a0RBSXdCLElBQ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JldHVybiB0aGlzLiRvcHRpb25zLiRlcnJvcnM7XG4gICAgICB9O1xuICAgIH0sXG4gIH0pXG59XG5cblZhbGlkYXRvci5pbnN0YWxsID0gaW5zdGFsbFxuXG5jb25zdCB2YWxpZGF0b3IgPSBuZXcgVmFsaWRhdG9yKCk7XG5cbmV4cG9ydCB7IHZhbGlkYXRvciBhcyBWYWxpZGF0b3IgfVxuIl19
*/},{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',Validator),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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJpbnN0YWxsIiwiVmFsaWRhdG9yIiwiZXJyb3JzIiwiYnVzeSIsInN1Y2Nlc3MiLCJmaWVsZCIsImhhcyIsImtleSIsInZhbHVlcyIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwiZmlsbCIsImV2ZW50IiwibmFtZSIsInRhcmdldCIsImNsZWFyIiwiVnVlIiwib3B0aW9ucyIsImRlZmF1bHRzIiwidmFsaWRhdG9yIiwiY29tcG9uZW50IiwiRXJyb3JDb21wb25lbnQiLCJodHRwIiwiaW50ZXJjZXB0b3JzIiwicHVzaCIsInJlcXVl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kYXRhLmVycm9yc1xuICAgICAgICB2YWxpZGF0b3IuZmlsbChkYXRhLmVycm9ycylcbiAgICAgIH1cbiAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdChlcnJvcik7XG4gICAgfSk7XG4gIH1cbiAgVnVlLm1peGluKHtcbiAgICBiZWZvcmVDcmVhdGUgKCkge1xuICAgICAgdGhpcy4kb3B0aW9ucy4kZXJyb3JzID0ge307XG4gICAgICBWdWUudXRpbC5kZWZpbmVSZWFjdGl2ZSh0aGlzLiRvcHRpb25zLCAnJGVycm9ycycsIFZhbGlkYXRvcik7XG4gICAgICBpZiAoIXRoaXMuJG9wdGlvbnMuY29tcHV0ZWQpIHtcbiAgICAgICAgdGhpcy4kb3B0aW9ucy5jb21wdXRlZCA9IHt9XG4gICAgICB9XG4gICAgICB0aGlzLiRvcHRpb25zLmNvbXB1dGVkW1wiJGVycm9yc1wiXSA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuJG9wdGlvbnMuJGVycm9ycztcbiAgICAgIH07XG4gICAgfSxcbiAgfSlcbn1cblxuVmFsaWRhdG9yLmluc3RhbGwgPSBpbnN0YWxsXG5cbmNvbnN0IHZhbGlkYXRvciA9IG5ldyBWYWxpZGF0b3IoKTtcblxuZXhwb3J0IHsgdmFsaWRhdG9yIGFzIFZhbGlkYXRvciB9XG4iXX0=
{
"name": "laravel-vue2-validator",
"version": "0.0.9-beta-4",
"version": "0.0.9-beta-5",
"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