@sanity/validation 2.28.0 → 2.29.5-get-started-template.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/lib/Rule.js +3 -3
  3. package/package.json +4 -4
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2016 - 2021 Sanity.io
3
+ Copyright (c) 2016 - 2022 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/lib/Rule.js CHANGED
@@ -31,7 +31,7 @@ var _objectValidator = _interopRequireDefault(require("./validators/objectValida
31
31
 
32
32
  var _dateValidator = _interopRequireDefault(require("./validators/dateValidator"));
33
33
 
34
- var _class;
34
+ var _class, _temp;
35
35
 
36
36
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
37
 
@@ -77,7 +77,7 @@ var ruleConstraintTypes = ['Array', 'Boolean', 'Date', 'Number', 'Object', 'Stri
77
77
  // an instance definition. This should help reminder downstream users to import
78
78
  // from the `@sanity/types` package.
79
79
 
80
- var Rule = (_class = class Rule {
80
+ var Rule = (_temp = _class = class Rule {
81
81
  constructor(typeDef) {
82
82
  _defineProperty(this, "_type", undefined);
83
83
 
@@ -486,6 +486,6 @@ var Rule = (_class = class Rule {
486
486
  }, _defineProperty(_class, "FIELD_REF", FIELD_REF), _defineProperty(_class, "array", def => new _class(def).type('Array')), _defineProperty(_class, "object", def => new _class(def).type('Object')), _defineProperty(_class, "string", def => new _class(def).type('String')), _defineProperty(_class, "number", def => new _class(def).type('Number')), _defineProperty(_class, "boolean", def => new _class(def).type('Boolean')), _defineProperty(_class, "dateTime", def => new _class(def).type('Date')), _defineProperty(_class, "valueOfField", path => ({
487
487
  type: FIELD_REF,
488
488
  path
489
- })), _class);
489
+ })), _temp);
490
490
  var _default = Rule;
491
491
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/validation",
3
- "version": "2.28.0",
3
+ "version": "2.29.5-get-started-template.13+1f2e78fb8",
4
4
  "description": "Validation and warning infrastructure for Sanity projects",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./dist/dts",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@sanity/client": "^3.2.0",
36
- "@sanity/schema": "2.28.0"
36
+ "@sanity/schema": "2.29.5-get-started-template.13+1f2e78fb8"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@sanity/client": "^3.2.0"
@@ -44,9 +44,9 @@
44
44
  }
45
45
  },
46
46
  "dependencies": {
47
- "@sanity/types": "2.28.0",
47
+ "@sanity/types": "2.29.5-get-started-template.13+1f2e78fb8",
48
48
  "date-fns": "^2.16.1",
49
49
  "lodash": "^4.17.15"
50
50
  },
51
- "gitHead": "ec26f91811d213a11e61af53053596d750704491"
51
+ "gitHead": "1f2e78fb858a9594de2feb1240bf6b15d80ef117"
52
52
  }