Skip to content

Commit

Permalink
[ops] Add built files
Browse files Browse the repository at this point in the history
  • Loading branch information
peterver committed Jun 25, 2023
1 parent 2059914 commit 7a61c5b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dist/functions/vContinent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

Object.defineProperty(exports, "__esModule", {
value: !0
});
exports["default"] = vContinent;
var _is = _interopRequireDefault(require("@valkyriestudios/utils/is"));
var _mapKey = _interopRequireDefault(require("@valkyriestudios/utils/array/mapKey"));
var _continents = _interopRequireDefault(require("@valkyriestudios/utils/data/continents.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var MAP = (0, _mapKey["default"])(_continents["default"], 'code');
function vContinent(val) {
if (!_is["default"].NeString(val)) return !1;
return MAP.hasOwnProperty(val);
}
15 changes: 15 additions & 0 deletions dist/functions/vCountry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

Object.defineProperty(exports, "__esModule", {
value: !0
});
exports["default"] = vCountry;
var _is = _interopRequireDefault(require("@valkyriestudios/utils/is"));
var _mapKey = _interopRequireDefault(require("@valkyriestudios/utils/array/mapKey"));
var _countries = _interopRequireDefault(require("@valkyriestudios/utils/data/countries.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var MAP = (0, _mapKey["default"])(_countries["default"], 'al2');
function vCountry(val) {
if (!_is["default"].NeString(val)) return !1;
return MAP.hasOwnProperty(val);
}
15 changes: 15 additions & 0 deletions dist/functions/vCountryAlpha3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

Object.defineProperty(exports, "__esModule", {
value: !0
});
exports["default"] = vCountryAlpha3;
var _is = _interopRequireDefault(require("@valkyriestudios/utils/is"));
var _mapKey = _interopRequireDefault(require("@valkyriestudios/utils/array/mapKey"));
var _countries = _interopRequireDefault(require("@valkyriestudios/utils/data/countries.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var MAP = (0, _mapKey["default"])(_countries["default"], 'al3');
function vCountryAlpha3(val) {
if (!_is["default"].NeString(val)) return !1;
return MAP.hasOwnProperty(val);
}
6 changes: 6 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ var _vBetween = _interopRequireDefault(require("./functions/vBetween"));
var _vBetweenInclusive = _interopRequireDefault(require("./functions/vBetweenInclusive"));
var _vBoolean = _interopRequireDefault(require("./functions/vBoolean"));
var _vColorHex = _interopRequireDefault(require("./functions/vColorHex"));
var _vContinent = _interopRequireDefault(require("./functions/vContinent.js"));
var _vCountry = _interopRequireDefault(require("./functions/vCountry.js"));
var _vCountryAlpha = _interopRequireDefault(require("./functions/vCountryAlpha3.js"));
var _vDateString = _interopRequireDefault(require("./functions/vDateString"));
var _vEmail = _interopRequireDefault(require("./functions/vEmail"));
var _vGeoLatitude = _interopRequireDefault(require("./functions/vGeoLatitude"));
Expand Down Expand Up @@ -55,6 +58,9 @@ var validateFn = {
between_inc: _vBetweenInclusive["default"],
"boolean": _vBoolean["default"],
color_hex: _vColorHex["default"],
continent: _vContinent["default"],
country: _vCountry["default"],
country_alpha3: _vCountryAlpha["default"],
date: _is["default"].Date,
date_string: _vDateString["default"],
email: _vEmail["default"],
Expand Down

0 comments on commit 7a61c5b

Please sign in to comment.