@peac/policy-kit 0.12.13 → 0.13.0

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 {
@@ -1341,8 +1344,10 @@ exports.isDenied = isDenied;
1341
1344
  exports.isEnforcementProfileId = isEnforcementProfileId;
1342
1345
  exports.listProfiles = listProfiles;
1343
1346
  exports.loadPolicy = loadPolicy;
1347
+ exports.loadPolicyDocument = parsePolicyDocument;
1344
1348
  exports.loadProfile = loadProfile;
1345
1349
  exports.parsePolicy = parsePolicy;
1350
+ exports.parsePolicyDocument = parsePolicyDocument;
1346
1351
  exports.parseRateLimit = parseRateLimit;
1347
1352
  exports.policyFileExists = policyFileExists;
1348
1353
  exports.renderPolicyMarkdown = renderPolicyMarkdown;