zitejs 0.9.143 → 0.9.144
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/cjs/integrations/rules.d.ts +1 -0
- package/dist/cjs/integrations/rules.js +3 -0
- package/dist/cjs/integrations/rules.test.js +1 -0
- package/dist/esm/integrations/rules.d.ts +1 -0
- package/dist/esm/integrations/rules.js +3 -0
- package/dist/esm/integrations/rules.test.js +1 -0
- package/package.json +1 -1
|
@@ -56,6 +56,9 @@ const FIELDS_BY_TYPE = {
|
|
|
56
56
|
// only valid on the account it was issued for, so the subdomain travels with
|
|
57
57
|
// it rather than being configured per app.
|
|
58
58
|
zendesk: extras("subdomain"),
|
|
59
|
+
// Smartsheet's US, EU, AU and Gov regions are separate, and a token is only
|
|
60
|
+
// valid on its own region's host, so the host travels with it.
|
|
61
|
+
smartsheet: extras("apiBaseUrl"),
|
|
59
62
|
// The IAM key alone reaches nothing: every call needs the region and the
|
|
60
63
|
// bucket, and S3-compatible providers need the endpoint too.
|
|
61
64
|
amazonS3: extras("keyId", "region", "bucket", "endpoint", "pathPrefix"),
|
|
@@ -18,6 +18,7 @@ const index_js_1 = require("../index.js");
|
|
|
18
18
|
]);
|
|
19
19
|
(0, vitest_1.expect)(index_js_1.CREDENTIAL_FIELDS.jira).toEqual(["accessToken", "cloudId", "siteUrl"]);
|
|
20
20
|
(0, vitest_1.expect)(index_js_1.CREDENTIAL_FIELDS.granola).toEqual(["accessToken"]);
|
|
21
|
+
(0, vitest_1.expect)(index_js_1.CREDENTIAL_FIELDS.smartsheet).toEqual(["accessToken", "apiBaseUrl"]);
|
|
21
22
|
});
|
|
22
23
|
(0, vitest_1.it)("has no type the runtime never serves", () => {
|
|
23
24
|
for (const type of index_js_1.NON_CREDENTIAL_SERVICE_TYPES) {
|
|
@@ -53,6 +53,9 @@ const FIELDS_BY_TYPE = {
|
|
|
53
53
|
// only valid on the account it was issued for, so the subdomain travels with
|
|
54
54
|
// it rather than being configured per app.
|
|
55
55
|
zendesk: extras("subdomain"),
|
|
56
|
+
// Smartsheet's US, EU, AU and Gov regions are separate, and a token is only
|
|
57
|
+
// valid on its own region's host, so the host travels with it.
|
|
58
|
+
smartsheet: extras("apiBaseUrl"),
|
|
56
59
|
// The IAM key alone reaches nothing: every call needs the region and the
|
|
57
60
|
// bucket, and S3-compatible providers need the endpoint too.
|
|
58
61
|
amazonS3: extras("keyId", "region", "bucket", "endpoint", "pathPrefix"),
|
|
@@ -16,6 +16,7 @@ describe("CREDENTIAL_FIELDS", () => {
|
|
|
16
16
|
]);
|
|
17
17
|
expect(CREDENTIAL_FIELDS.jira).toEqual(["accessToken", "cloudId", "siteUrl"]);
|
|
18
18
|
expect(CREDENTIAL_FIELDS.granola).toEqual(["accessToken"]);
|
|
19
|
+
expect(CREDENTIAL_FIELDS.smartsheet).toEqual(["accessToken", "apiBaseUrl"]);
|
|
19
20
|
});
|
|
20
21
|
it("has no type the runtime never serves", () => {
|
|
21
22
|
for (const type of NON_CREDENTIAL_SERVICE_TYPES) {
|