@naturalcycles/nodejs-lib 13.30.0 → 13.30.1

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.
@@ -57,8 +57,8 @@ function oneOfSchema(...schemas) {
57
57
  exports.anySchema = joi_extensions_1.Joi.any();
58
58
  exports.anyObjectSchema = joi_extensions_1.Joi.object().options({ stripUnknown: false });
59
59
  exports.BASE62_REGEX = /^[a-zA-Z0-9]+$/;
60
- exports.BASE64_REGEX = /^[A-Za-z0-9+/]+={0,2}$/;
61
- exports.BASE64URL_REGEX = /^[\w-/]+$/;
60
+ exports.BASE64_REGEX = /^[a-zA-Z0-9+/]+={0,2}$/;
61
+ exports.BASE64URL_REGEX = /^[a-zA-Z0-9_-]+$/;
62
62
  exports.base62Schema = exports.stringSchema.regex(exports.BASE62_REGEX);
63
63
  exports.base64Schema = exports.stringSchema.regex(exports.BASE64_REGEX);
64
64
  exports.base64UrlSchema = exports.stringSchema.regex(exports.BASE64URL_REGEX);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/nodejs-lib",
3
- "version": "13.30.0",
3
+ "version": "13.30.1",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "docs-serve": "vuepress dev docs",
@@ -76,8 +76,8 @@ export const anySchema = Joi.any()
76
76
  export const anyObjectSchema: ObjectSchema = Joi.object().options({ stripUnknown: false })
77
77
 
78
78
  export const BASE62_REGEX = /^[a-zA-Z0-9]+$/
79
- export const BASE64_REGEX = /^[A-Za-z0-9+/]+={0,2}$/
80
- export const BASE64URL_REGEX = /^[\w-/]+$/
79
+ export const BASE64_REGEX = /^[a-zA-Z0-9+/]+={0,2}$/
80
+ export const BASE64URL_REGEX = /^[a-zA-Z0-9_-]+$/
81
81
  export const base62Schema = stringSchema.regex(BASE62_REGEX)
82
82
  export const base64Schema = stringSchema.regex(BASE64_REGEX)
83
83
  export const base64UrlSchema = stringSchema.regex(BASE64URL_REGEX)