New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adobe/aio-lib-cloudmanager

Package Overview
Dependencies
Maintainers
21
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adobe/aio-lib-cloudmanager - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

19

CHANGELOG.md
# Changelog
# [3.0.0](https://github.com/adobe/aio-lib-cloudmanager/compare/2.0.0...3.0.0) (2022-12-16)
### Bug Fixes
* **deps:** update dependencies to incorporate http proxy bugfix. fixes [#374](https://github.com/adobe/aio-lib-cloudmanager/issues/374) ([32c1d39](https://github.com/adobe/aio-lib-cloudmanager/commit/32c1d3958dc3b26aa9b34616ea5423d588bfaa8b))
* **deps:** update dependencies to incorporate http proxy bugfix. fixes [#374](https://github.com/adobe/aio-lib-cloudmanager/issues/374) ([5651847](https://github.com/adobe/aio-lib-cloudmanager/commit/5651847db096a985d04a21184fdf7e5eebc9427d))
### chore
* reverted version change and will let the bot do this ([2ba0305](https://github.com/adobe/aio-lib-cloudmanager/commit/2ba03057351b08efe64bd06c3139a1db0194365b))
### BREAKING CHANGES
* **deps:** dependent library reference has been updated to a new major version
* dependent library reference has been updated to a new major version
# [2.0.0](https://github.com/adobe/aio-lib-cloudmanager/compare/1.14.1...2.0.0) (2022-03-01)

@@ -4,0 +23,0 @@

2

docs/readme_template.md

@@ -53,3 +53,3 @@ <!--

// get... something
const result = await client.getSomething({})
const result = await client.listPrograms()
console.log(result)

@@ -56,0 +56,0 @@

@@ -19,3 +19,3 @@ /*

let sdkClient = {}
const tenantId = process.env['{{LIB_NAME}}_TENANT_ID']
const orgId = process.env['{{LIB_NAME}}_ORG_ID']
const apiKey = process.env['{{LIB_NAME}}_API_KEY']

@@ -25,7 +25,7 @@ const accessToken = process.env['{{LIB_NAME}}_ACCESS_TOKEN']

beforeAll(async () => {
sdkClient = await sdk.init(tenantId, apiKey, accessToken)
sdkClient = await sdk.init(orgId, apiKey, accessToken)
})
test('sdk init test', async () => {
expect(sdkClient.tenantId).toBe(tenantId)
expect(sdkClient.orgId).toBe(orgId)
expect(sdkClient.apiKey).toBe(apiKey)

@@ -36,4 +36,4 @@ expect(sdkClient.accessToken).toBe(accessToken)

test('bad access token', async () => {
const _sdkClient = await sdk.init(tenantId, apiKey, 'bad_access_token')
const promise = _sdkClient.getSomething()
const _sdkClient = await sdk.init(orgId, apiKey, 'bad_access_token')
const promise = _sdkClient.listPrograms()

@@ -45,4 +45,4 @@ // just match the error message

test('bad api key', async () => {
const _sdkClient = await sdk.init(tenantId, 'bad_api_key', accessToken)
const promise = _sdkClient.getSomething()
const _sdkClient = await sdk.init(orgId, 'bad_api_key', accessToken)
const promise = _sdkClient.listPrograms()

@@ -53,14 +53,14 @@ // just match the error message

test('bad tenant id', async () => {
const _sdkClient = await sdk.init('bad_tenant_id', apiKey, accessToken)
const promise = _sdkClient.getSomething()
test('bad org id', async () => {
const _sdkClient = await sdk.init('bad_org_id', apiKey, accessToken)
const promise = _sdkClient.listPrograms()
// just match the error message
return expect(promise).rejects.toThrow('500')
return expect(promise).rejects.toThrow('403')
})
test('getSomething API', async () => {
test('list programs API', async () => {
// check success response
const res = await sdkClient.getSomething({ limit: 5, page: 0 })
expect(res.ok).toBeTruthy()
const res = await sdkClient.listPrograms()
expect(res[0].enabled).toBeTruthy()
})

@@ -6,3 +6,3 @@ # E2E Tests

To run the e2e test you'll need these env variables set:
1. `{{LIB_NAME}}_TENANT_ID`
1. `{{LIB_NAME}}_ORG_ID`
2. `{{LIB_NAME}}_API_KEY`

@@ -19,3 +19,3 @@ 3. `{{LIB_NAME}}_ACCESS_TOKEN`

1. Malformed tenant id, api key or access token
1. Malformed org id, api key or access token
2. `read` APIs
{
"name": "@adobe/aio-lib-cloudmanager",
"version": "2.0.0",
"version": "3.0.0",
"description": "Adobe I/O Cloud Manager Library",

@@ -31,5 +31,5 @@ "repository": {

"dependencies": {
"@adobe/aio-lib-core-errors": "^3.0.0",
"@adobe/aio-lib-core-logging": "^1.1.2",
"@adobe/aio-lib-core-networking": "^2.0.0",
"@adobe/aio-lib-core-errors": "^3.1.1",
"@adobe/aio-lib-core-logging": "^2.0.0",
"@adobe/aio-lib-core-networking": "^3.0.0",
"halfred": "^2.0.0",

@@ -57,3 +57,3 @@ "lodash.clone": "^4.5.0",

"eslint-plugin-jest": "23.20.0",
"eslint-plugin-jsdoc": "37.9.4",
"eslint-plugin-jsdoc": "37.9.7",
"eslint-plugin-node": "11.1.0",

@@ -60,0 +60,0 @@ "eslint-plugin-promise": "5.2.0",

@@ -53,3 +53,3 @@ <!--

// get... something
const result = await client.getSomething({})
const result = await client.listPrograms()
console.log(result)

@@ -69,3 +69,3 @@

Before calling any method initialize the instance by calling the <code>init</code> method on it
with valid values for tenantId, apiKey and accessToken</p>
with valid values for orgId, apiKey and accessToken</p>
</dd>

@@ -139,3 +139,3 @@ </dl>

Before calling any method initialize the instance by calling the `init` method on it
with valid values for tenantId, apiKey and accessToken
with valid values for orgId, apiKey and accessToken

@@ -142,0 +142,0 @@ **Kind**: global class

@@ -66,3 +66,3 @@ /*

* Before calling any method initialize the instance by calling the `init` method on it
* with valid values for tenantId, apiKey and accessToken
* with valid values for orgId, apiKey and accessToken
*/

@@ -69,0 +69,0 @@ class CloudManagerAPI {

@@ -28,3 +28,3 @@ /**

* Before calling any method initialize the instance by calling the `init` method on it
* with valid values for tenantId, apiKey and accessToken
* with valid values for orgId, apiKey and accessToken
*/

@@ -31,0 +31,0 @@ declare class CloudManagerAPI {

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc