@backstage/plugin-scaffolder-backend-module-bitbucket-cloud
Advanced tools
Comparing version 0.2.3 to 0.2.4-next.1
# @backstage/plugin-scaffolder-backend-module-bitbucket-cloud | ||
## 0.2.3 | ||
## 0.2.4-next.1 | ||
### Patch Changes | ||
- 5c9cc05: Use native fetch instead of node-fetch | ||
- Updated dependencies | ||
- @backstage/plugin-scaffolder-node@0.6.1 | ||
- @backstage/plugin-scaffolder-node@0.6.2-next.1 | ||
- @backstage/backend-plugin-api@1.1.0-next.1 | ||
- @backstage/config@1.3.0 | ||
- @backstage/errors@1.2.5 | ||
- @backstage/integration@1.16.0-next.0 | ||
- @backstage/plugin-bitbucket-cloud-common@0.2.26-next.0 | ||
## 0.2.3-next.0 | ||
### Patch Changes | ||
- c4ffd13: Added the autocomplete feature to GitlabRepoUrlPicker | ||
- Updated dependencies | ||
- @backstage/integration@1.16.0-next.0 | ||
- @backstage/backend-plugin-api@1.0.3-next.0 | ||
- @backstage/plugin-scaffolder-node@0.6.1-next.0 | ||
- @backstage/config@1.3.0 | ||
- @backstage/errors@1.2.5 | ||
- @backstage/plugin-bitbucket-cloud-common@0.2.26-next.0 | ||
## 0.2.2 | ||
@@ -11,0 +30,0 @@ |
@@ -5,10 +5,5 @@ 'use strict'; | ||
var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node'); | ||
var fetch = require('node-fetch'); | ||
var helpers = require('./helpers.cjs.js'); | ||
var bitbucketCloud_examples = require('./bitbucketCloud.examples.cjs.js'); | ||
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; } | ||
var fetch__default = /*#__PURE__*/_interopDefaultCompat(fetch); | ||
const createRepository = async (opts) => { | ||
@@ -40,3 +35,3 @@ const { | ||
try { | ||
response = await fetch__default.default( | ||
response = await fetch( | ||
`${apiBaseUrl}/repositories/${workspace}/${repo}`, | ||
@@ -43,0 +38,0 @@ options |
@@ -5,10 +5,5 @@ 'use strict'; | ||
var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node'); | ||
var fetch = require('node-fetch'); | ||
var inputProperties = require('./inputProperties.cjs.js'); | ||
var helpers = require('./helpers.cjs.js'); | ||
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; } | ||
var fetch__default = /*#__PURE__*/_interopDefaultCompat(fetch); | ||
const id = "bitbucket:pipelines:run"; | ||
@@ -60,3 +55,3 @@ const createBitbucketPipelinesRunAction = (options) => { | ||
try { | ||
response = await fetch__default.default( | ||
response = await fetch( | ||
`https://api.bitbucket.org/2.0/repositories/${workspace}/${repo_slug}/pipelines`, | ||
@@ -63,0 +58,0 @@ { |
@@ -5,3 +5,2 @@ 'use strict'; | ||
var pluginScaffolderNode = require('@backstage/plugin-scaffolder-node'); | ||
var fetch = require('node-fetch'); | ||
var fs = require('fs-extra'); | ||
@@ -13,3 +12,2 @@ var helpers = require('./helpers.cjs.js'); | ||
var fetch__default = /*#__PURE__*/_interopDefaultCompat(fetch); | ||
var fs__default = /*#__PURE__*/_interopDefaultCompat(fs); | ||
@@ -54,3 +52,3 @@ | ||
try { | ||
response = await fetch__default.default( | ||
response = await fetch( | ||
`${apiBaseUrl}/repositories/${workspace}/${repo}/pullrequests`, | ||
@@ -81,3 +79,3 @@ data | ||
try { | ||
response = await fetch__default.default( | ||
response = await fetch( | ||
`${apiBaseUrl}/repositories/${workspace}/${repo}/refs/branches?q=${encodeURIComponent( | ||
@@ -123,3 +121,3 @@ `name = "${branchName}"` | ||
try { | ||
response = await fetch__default.default( | ||
response = await fetch( | ||
`${apiBaseUrl}/repositories/${workspace}/${repo}/refs/branches`, | ||
@@ -149,3 +147,3 @@ options | ||
try { | ||
response = await fetch__default.default( | ||
response = await fetch( | ||
`${apiBaseUrl}/repositories/${workspace}/${repo}`, | ||
@@ -152,0 +150,0 @@ options |
@@ -20,3 +20,5 @@ 'use strict'; | ||
for await (const page of client.listWorkspaces().iteratePages()) { | ||
const slugs = [...page.values].map((p) => ({ title: p.slug })); | ||
const slugs = [...page.values].map((p) => ({ | ||
id: p.slug | ||
})); | ||
results.push(...slugs); | ||
@@ -31,3 +33,5 @@ } | ||
for await (const page of client.listProjectsByWorkspace(context.workspace).iteratePages()) { | ||
const keys = [...page.values].map((p) => ({ title: p.key })); | ||
const keys = [...page.values].map((p) => ({ | ||
id: p.key | ||
})); | ||
results.push(...keys); | ||
@@ -46,3 +50,5 @@ } | ||
}).iteratePages()) { | ||
const slugs = [...page.values].map((p) => ({ title: p.slug })); | ||
const slugs = [...page.values].map((p) => ({ | ||
id: p.slug | ||
})); | ||
results.push(...slugs); | ||
@@ -59,3 +65,5 @@ } | ||
for await (const page of client.listBranchesByRepository(context.repository, context.workspace).iteratePages()) { | ||
const names = [...page.values].map((p) => ({ title: p.name })); | ||
const names = [...page.values].map((p) => ({ | ||
id: p.name | ||
})); | ||
results.push(...names); | ||
@@ -62,0 +70,0 @@ } |
{ | ||
"name": "@backstage/plugin-scaffolder-backend-module-bitbucket-cloud", | ||
"version": "0.2.3", | ||
"version": "0.2.4-next.1", | ||
"description": "The Bitbucket Cloud module for @backstage/plugin-scaffolder-backend", | ||
@@ -50,18 +50,17 @@ "backstage": { | ||
"dependencies": { | ||
"@backstage/backend-plugin-api": "^1.0.2", | ||
"@backstage/config": "^1.3.0", | ||
"@backstage/errors": "^1.2.5", | ||
"@backstage/integration": "^1.15.2", | ||
"@backstage/plugin-bitbucket-cloud-common": "^0.2.25", | ||
"@backstage/plugin-scaffolder-node": "^0.6.1", | ||
"@backstage/backend-plugin-api": "1.1.0-next.1", | ||
"@backstage/config": "1.3.0", | ||
"@backstage/errors": "1.2.5", | ||
"@backstage/integration": "1.16.0-next.0", | ||
"@backstage/plugin-bitbucket-cloud-common": "0.2.26-next.0", | ||
"@backstage/plugin-scaffolder-node": "0.6.2-next.1", | ||
"fs-extra": "^11.2.0", | ||
"node-fetch": "^2.7.0", | ||
"yaml": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@backstage/backend-test-utils": "^1.1.0", | ||
"@backstage/cli": "^0.29.2", | ||
"@backstage/plugin-scaffolder-node-test-utils": "^0.1.16", | ||
"@backstage/backend-test-utils": "1.2.0-next.1", | ||
"@backstage/cli": "0.29.3-next.1", | ||
"@backstage/plugin-scaffolder-node-test-utils": "0.1.17-next.1", | ||
"msw": "^1.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8
139669
6
+ Added@azure/core-http-compat@2.1.2(transitive)
+ Added@azure/core-lro@2.7.2(transitive)
+ Added@azure/core-paging@1.6.2(transitive)
+ Added@azure/core-xml@1.4.4(transitive)
+ Added@azure/storage-blob@12.26.0(transitive)
+ Added@backstage/backend-plugin-api@1.1.0-next.1(transitive)
+ Added@backstage/catalog-client@1.9.0-next.1(transitive)
+ Added@backstage/integration@1.16.0-next.0(transitive)
+ Added@backstage/plugin-auth-node@0.5.5-next.1(transitive)
+ Added@backstage/plugin-bitbucket-cloud-common@0.2.26-next.0(transitive)
+ Added@backstage/plugin-scaffolder-common@1.5.8-next.0(transitive)
+ Added@backstage/plugin-scaffolder-node@0.6.2-next.1(transitive)
+ Addedfast-xml-parser@4.5.0(transitive)
- Removednode-fetch@^2.7.0
- Removed@backstage/plugin-bitbucket-cloud-common@0.2.25(transitive)
- Removed@backstage/plugin-scaffolder-common@1.5.7(transitive)
- Removed@backstage/plugin-scaffolder-node@0.6.1(transitive)
Updated@backstage/config@1.3.0
Updated@backstage/errors@1.2.5
Updated@backstage/plugin-bitbucket-cloud-common@0.2.26-next.0