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

factorial-form

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factorial-form - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

CHANGELOG.md
# Changelog
## `0.0.3`
Fixed babelrc
## `0.0.2`

@@ -4,0 +8,0 @@

21

lib/Field.js

@@ -8,4 +8,14 @@ 'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _getOwnPropertyDescriptor = require('babel-runtime/core-js/object/get-own-property-descriptor');
var _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _desc, _value, _class;

@@ -29,4 +39,2 @@

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {

@@ -65,3 +73,3 @@ var desc = {};

function Field(value, type) {
_classCallCheck(this, Field);
(0, _classCallCheck3.default)(this, Field);

@@ -81,3 +89,3 @@ this.type = type;

_createClass(Field, [{
(0, _createClass3.default)(Field, [{
key: '_mapIn',

@@ -168,5 +176,4 @@ value: function _mapIn(value) {

}]);
return Field;
}(), (_applyDecoratedDescriptor(_class.prototype, 'isDirty', [_mobx.computed], Object.getOwnPropertyDescriptor(_class.prototype, 'isDirty'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'mapAndSet', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'mapAndSet'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'set', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'set'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'clean', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'clean'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setErrors', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'setErrors'), _class.prototype)), _class);
}(), (_applyDecoratedDescriptor(_class.prototype, 'isDirty', [_mobx.computed], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'isDirty'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'mapAndSet', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'mapAndSet'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'set', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'set'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'clean', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'clean'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setErrors', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setErrors'), _class.prototype)), _class);
exports.default = Field;

@@ -8,4 +8,22 @@ 'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _getOwnPropertyDescriptor = require('babel-runtime/core-js/object/get-own-property-descriptor');
var _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _desc, _value, _class;

@@ -31,6 +49,2 @@

function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {

@@ -76,3 +90,3 @@ var desc = {};

function Form(values, schema) {
_classCallCheck(this, Form);
(0, _classCallCheck3.default)(this, Form);

@@ -82,3 +96,3 @@ this.fields = buildFields(values, schema);

_createClass(Form, [{
(0, _createClass3.default)(Form, [{
key: 'data',

@@ -208,4 +222,4 @@ value: function data() {

return this.handleErrors(_asyncToGenerator(regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_context) {
return this.handleErrors((0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() {
return _regenerator2.default.wrap(function _callee$(_context) {
while (1) {

@@ -227,7 +241,7 @@ switch (_context.prev = _context.next) {

value: function () {
var _ref2 = _asyncToGenerator(regeneratorRuntime.mark(function _callee2(fn) {
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(fn) {
var _this5 = this;
var values;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
return _regenerator2.default.wrap(function _callee2$(_context2) {
while (1) {

@@ -308,5 +322,4 @@ switch (_context2.prev = _context2.next) {

}]);
return Form;
}(), (_applyDecoratedDescriptor(_class.prototype, 'cleanAll', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'cleanAll'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'resetErrors', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'resetErrors'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setErrors', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'setErrors'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'values', [_mobx.computed], Object.getOwnPropertyDescriptor(_class.prototype, 'values'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'isDirty', [_mobx.computed], Object.getOwnPropertyDescriptor(_class.prototype, 'isDirty'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'resetValues', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'resetValues'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setValues', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'setValues'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'handleErrors', [_mobx.action], Object.getOwnPropertyDescriptor(_class.prototype, 'handleErrors'), _class.prototype)), _class);
}(), (_applyDecoratedDescriptor(_class.prototype, 'cleanAll', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'cleanAll'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'resetErrors', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'resetErrors'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setErrors', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setErrors'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'values', [_mobx.computed], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'values'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'isDirty', [_mobx.computed], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'isDirty'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'resetValues', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'resetValues'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setValues', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setValues'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'handleErrors', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'handleErrors'), _class.prototype)), _class);
exports.default = Form;
{
"name": "factorial-form",
"version": "0.0.2",
"version": "0.0.3",
"description": "Factorial form library",

@@ -5,0 +5,0 @@ "repository": {

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