@docusaurus/utils-validation 0.0.0-4550 → 0.0.0-4554

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.
package/lib/index.d.ts CHANGED
@@ -6,6 +6,6 @@
6
6
  */
7
7
  export { default as Joi } from './Joi';
8
8
  export { JoiFrontMatter } from './JoiFrontMatter';
9
- export * from './validationUtils';
10
- export * from './validationSchemas';
9
+ export { isValidationDisabledEscapeHatch, logValidationBugReportHint, printWarning, normalizePluginOptions, normalizeThemeConfig, validateFrontMatter, } from './validationUtils';
10
+ export { PluginIdSchema, RemarkPluginsSchema, RehypePluginsSchema, AdmonitionsSchema, URISchema, PathnameSchema, FrontMatterTagsSchema, FrontMatterTOCHeadingLevels, } from './validationSchemas';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EACL,+BAA+B,EAC/B,0BAA0B,EAC1B,YAAY,EACZ,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC"}
package/lib/index.js CHANGED
@@ -6,13 +6,26 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.JoiFrontMatter = exports.Joi = void 0;
10
- const tslib_1 = require("tslib");
9
+ exports.FrontMatterTOCHeadingLevels = exports.FrontMatterTagsSchema = exports.PathnameSchema = exports.URISchema = exports.AdmonitionsSchema = exports.RehypePluginsSchema = exports.RemarkPluginsSchema = exports.PluginIdSchema = exports.validateFrontMatter = exports.normalizeThemeConfig = exports.normalizePluginOptions = exports.printWarning = exports.logValidationBugReportHint = exports.isValidationDisabledEscapeHatch = exports.JoiFrontMatter = exports.Joi = void 0;
11
10
  // /!\ don't remove this export, as we recommend plugin authors to use it
12
11
  var Joi_1 = require("./Joi");
13
- Object.defineProperty(exports, "Joi", { enumerable: true, get: function () { return (0, tslib_1.__importDefault)(Joi_1).default; } });
12
+ Object.defineProperty(exports, "Joi", { enumerable: true, get: function () { return __importDefault(Joi_1).default; } });
14
13
  var JoiFrontMatter_1 = require("./JoiFrontMatter");
15
14
  Object.defineProperty(exports, "JoiFrontMatter", { enumerable: true, get: function () { return JoiFrontMatter_1.JoiFrontMatter; } });
16
- (0, tslib_1.__exportStar)(require("./validationUtils"), exports);
17
- (0, tslib_1.__exportStar)(require("./validationSchemas"), exports);
15
+ var validationUtils_1 = require("./validationUtils");
16
+ Object.defineProperty(exports, "isValidationDisabledEscapeHatch", { enumerable: true, get: function () { return validationUtils_1.isValidationDisabledEscapeHatch; } });
17
+ Object.defineProperty(exports, "logValidationBugReportHint", { enumerable: true, get: function () { return validationUtils_1.logValidationBugReportHint; } });
18
+ Object.defineProperty(exports, "printWarning", { enumerable: true, get: function () { return validationUtils_1.printWarning; } });
19
+ Object.defineProperty(exports, "normalizePluginOptions", { enumerable: true, get: function () { return validationUtils_1.normalizePluginOptions; } });
20
+ Object.defineProperty(exports, "normalizeThemeConfig", { enumerable: true, get: function () { return validationUtils_1.normalizeThemeConfig; } });
21
+ Object.defineProperty(exports, "validateFrontMatter", { enumerable: true, get: function () { return validationUtils_1.validateFrontMatter; } });
22
+ var validationSchemas_1 = require("./validationSchemas");
23
+ Object.defineProperty(exports, "PluginIdSchema", { enumerable: true, get: function () { return validationSchemas_1.PluginIdSchema; } });
24
+ Object.defineProperty(exports, "RemarkPluginsSchema", { enumerable: true, get: function () { return validationSchemas_1.RemarkPluginsSchema; } });
25
+ Object.defineProperty(exports, "RehypePluginsSchema", { enumerable: true, get: function () { return validationSchemas_1.RehypePluginsSchema; } });
26
+ Object.defineProperty(exports, "AdmonitionsSchema", { enumerable: true, get: function () { return validationSchemas_1.AdmonitionsSchema; } });
27
+ Object.defineProperty(exports, "URISchema", { enumerable: true, get: function () { return validationSchemas_1.URISchema; } });
28
+ Object.defineProperty(exports, "PathnameSchema", { enumerable: true, get: function () { return validationSchemas_1.PathnameSchema; } });
29
+ Object.defineProperty(exports, "FrontMatterTagsSchema", { enumerable: true, get: function () { return validationSchemas_1.FrontMatterTagsSchema; } });
30
+ Object.defineProperty(exports, "FrontMatterTOCHeadingLevels", { enumerable: true, get: function () { return validationSchemas_1.FrontMatterTOCHeadingLevels; } });
18
31
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,yEAAyE;AACzE,6BAAqC;AAA7B,wHAAA,OAAO,OAAO;AACtB,mDAAgD;AAAxC,gHAAA,cAAc,OAAA;AAEtB,iEAAkC;AAClC,mEAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yEAAyE;AACzE,6BAAqC;AAA7B,2GAAA,OAAO,OAAO;AACtB,mDAAgD;AAAxC,gHAAA,cAAc,OAAA;AAEtB,qDAO2B;AANzB,kIAAA,+BAA+B,OAAA;AAC/B,6HAAA,0BAA0B,OAAA;AAC1B,+GAAA,YAAY,OAAA;AACZ,yHAAA,sBAAsB,OAAA;AACtB,uHAAA,oBAAoB,OAAA;AACpB,sHAAA,mBAAmB,OAAA;AAErB,yDAS6B;AAR3B,mHAAA,cAAc,OAAA;AACd,wHAAA,mBAAmB,OAAA;AACnB,wHAAA,mBAAmB,OAAA;AACnB,sHAAA,iBAAiB,OAAA;AACjB,8GAAA,SAAS,OAAA;AACT,mHAAA,cAAc,OAAA;AACd,0HAAA,qBAAqB,OAAA;AACrB,gIAAA,2BAA2B,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/utils-validation",
3
- "version": "0.0.0-4550",
3
+ "version": "0.0.0-4554",
4
4
  "description": "Node validation utility functions for Docusaurus packages.",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/logger": "0.0.0-4550",
22
- "@docusaurus/utils": "0.0.0-4550",
21
+ "@docusaurus/logger": "0.0.0-4554",
22
+ "@docusaurus/utils": "0.0.0-4554",
23
23
  "joi": "^17.6.0",
24
24
  "tslib": "^2.3.1"
25
25
  },
@@ -32,5 +32,5 @@
32
32
  "engines": {
33
33
  "node": ">=14"
34
34
  },
35
- "gitHead": "9eccadbbf68a877760b1ee7a42484df09cd9d862"
35
+ "gitHead": "d599cd10202242196737527108e8a15beef1443d"
36
36
  }
package/src/index.ts CHANGED
@@ -9,5 +9,21 @@
9
9
  export {default as Joi} from './Joi';
10
10
  export {JoiFrontMatter} from './JoiFrontMatter';
11
11
 
12
- export * from './validationUtils';
13
- export * from './validationSchemas';
12
+ export {
13
+ isValidationDisabledEscapeHatch,
14
+ logValidationBugReportHint,
15
+ printWarning,
16
+ normalizePluginOptions,
17
+ normalizeThemeConfig,
18
+ validateFrontMatter,
19
+ } from './validationUtils';
20
+ export {
21
+ PluginIdSchema,
22
+ RemarkPluginsSchema,
23
+ RehypePluginsSchema,
24
+ AdmonitionsSchema,
25
+ URISchema,
26
+ PathnameSchema,
27
+ FrontMatterTagsSchema,
28
+ FrontMatterTOCHeadingLevels,
29
+ } from './validationSchemas';