@peac/policy-kit 0.12.13 → 0.12.14

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/dist/index.cjs CHANGED
@@ -201,6 +201,9 @@ var PolicyValidationError = class extends PolicyLoadError {
201
201
  this.name = "PolicyValidationError";
202
202
  }
203
203
  };
204
+ function parsePolicyDocument(text) {
205
+ return parsePolicy(text);
206
+ }
204
207
  function parsePolicy(content, format) {
205
208
  let parsed;
206
209
  try {
@@ -1343,6 +1346,7 @@ exports.listProfiles = listProfiles;
1343
1346
  exports.loadPolicy = loadPolicy;
1344
1347
  exports.loadProfile = loadProfile;
1345
1348
  exports.parsePolicy = parsePolicy;
1349
+ exports.parsePolicyDocument = parsePolicyDocument;
1346
1350
  exports.parseRateLimit = parseRateLimit;
1347
1351
  exports.policyFileExists = policyFileExists;
1348
1352
  exports.renderPolicyMarkdown = renderPolicyMarkdown;