@forge/util
2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/bitbucket/app/index.js~
packages/ari/bitbucket/app/index.jsModified+6−2
Index: package/packages/ari/bitbucket/app/index.js
===================================================================
--- package/packages/ari/bitbucket/app/index.js
+++ package/packages/ari/bitbucket/app/index.js
@@ -284,21 +284,25 @@
var bitbucketAppAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: BitbucketAppAriResourceOwner,
- resourceType: "app",
+ resourceType: BitbucketAppAriResourceType,
resourceIdSlug: "{workspaceId}/{appId}",
resourceIdSegmentFormats: {
workspaceId: /\{[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
appId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ // eslint-disable-line no-useless-escape
}
};
// src/bitbucket/app/index.ts
var BitbucketAppAri = class _BitbucketAppAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._appId = opts.resourceIdSegmentValues.appId;
+ super(opts);
+ this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._appId = opts.resourceIdSegmentValues.appId;
}
get workspaceId() {
return this._workspaceId;
}