npm package diff

Package: @forge/util

Versions: 1.4.10-next.0 - 1.4.10-next.0-experimental-effab31

File: package/packages/ari/chunk-NFVFRDVU.mjs

Index: package/packages/ari/chunk-NFVFRDVU.mjs
===================================================================
--- package/packages/ari/chunk-NFVFRDVU.mjs
+++ package/packages/ari/chunk-NFVFRDVU.mjs
@@ -1,66 +0,0 @@
-import {
-  TownsquareCommentAriResourceOwner,
-  TownsquareCommentAriResourceType
-} from "./chunk-GVAPRDNZ.mjs";
-import {
-  RegisteredAri
-} from "./chunk-CLQNXEWF.mjs";
-import {
-  AriParser
-} from "./chunk-HNZGDVUS.mjs";
-
-// src/townsquare/comment/manifest.ts
-var townsquareCommentAriStaticOpts = {
-  qualifier: "ari",
-  platformQualifier: "cloud",
-  cloudId: new RegExp("^[a-zA-Z0-9-]+$"),
-  resourceOwner: TownsquareCommentAriResourceOwner,
-  resourceType: TownsquareCommentAriResourceType,
-  resourceIdSlug: "{commentUuid}",
-  resourceIdSegmentFormats: {
-    commentUuid: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
-    // eslint-disable-line no-useless-escape
-  }
-};
-
-// src/townsquare/comment/index.ts
-var TownsquareCommentAri = class _TownsquareCommentAri extends RegisteredAri {
-  constructor(opts) {
-    super(opts);
-    this._siteId = opts.cloudId || "", this._commentUuid = opts.resourceIdSegmentValues.commentUuid;
-  }
-  get siteId() {
-    return this._siteId;
-  }
-  get commentUuid() {
-    return this._commentUuid;
-  }
-  static create(opts) {
-    let derivedOpts = {
-      qualifier: townsquareCommentAriStaticOpts.qualifier,
-      platformQualifier: townsquareCommentAriStaticOpts.platformQualifier,
-      cloudId: opts.siteId,
-      resourceOwner: townsquareCommentAriStaticOpts.resourceOwner,
-      resourceType: townsquareCommentAriStaticOpts.resourceType,
-      resourceId: `${opts.commentUuid}`,
-      resourceIdSegmentValues: {
-        commentUuid: opts.commentUuid
-      }
-    }, ariOpts = AriParser.fromOpts(derivedOpts, townsquareCommentAriStaticOpts);
-    return new _TownsquareCommentAri(ariOpts);
-  }
-  static parse(maybeAri) {
-    let opts = AriParser.fromString(maybeAri, townsquareCommentAriStaticOpts);
-    return new _TownsquareCommentAri(opts);
-  }
-  getVariables() {
-    return {
-      siteId: this.siteId,
-      commentUuid: this.commentUuid
-    };
-  }
-};
-
-export {
-  TownsquareCommentAri
-};