Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/eslint-plugin-prom…
Browse files Browse the repository at this point in the history
…ise-6.1.1
  • Loading branch information
shazron authored Jul 9, 2023
2 parents 26f20c9 + 8d54197 commit 3729858
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 40 deletions.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
"swagger-client": "3.13.5"
},
"devDependencies": {
"@adobe/eslint-config-aio-lib-config": "^1.4.0",
"@adobe/eslint-config-aio-lib-config": "^2.0.0",
"dotenv": "^8.1.0",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.25.3",
"eslint": "^8.44.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-jsdoc": "^37.2.0",
"eslint-plugin-jsdoc": "^37.9.7",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-standard": "^5.0.0",
Expand All @@ -36,7 +37,7 @@
"jest-plugin-fs": "^2.9.0",
"jsdoc-to-markdown": "^5.0.0",
"openapi-schema-validator": "^12.1.0",
"typescript": "^4.5.4"
"typescript": "^5.1.6"
},
"jest": {
"testPathIgnorePatterns": [
Expand Down
12 changes: 6 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class TargetCoreAPI {
// init swagger client
const spec = require('../spec/target_api.json')
const swagger = new Swagger({
spec: spec,
spec,
usePromise: true
})
this.sdk = (await swagger)
Expand Down Expand Up @@ -278,7 +278,7 @@ class TargetCoreAPI {
const params = {}
params.id = id
const body = {
name: name
name
}
const sdkDetails = { params, body }
const headers = options.headers ? options.headers : {}
Expand Down Expand Up @@ -308,7 +308,7 @@ class TargetCoreAPI {
params.id = id

const body = {
state: state
state
}
const sdkDetails = { params, body }
const headers = options.headers ? options.headers : {}
Expand Down Expand Up @@ -338,7 +338,7 @@ class TargetCoreAPI {
params.id = id

const body = {
priority: priority
priority
}
const sdkDetails = { params, body }
const headers = options.headers ? options.headers : {}
Expand Down Expand Up @@ -368,7 +368,7 @@ class TargetCoreAPI {
params.id = id

const body = {
schedule: schedule
schedule
}
const sdkDetails = { params, body }
const headers = options.headers ? options.headers : {}
Expand Down Expand Up @@ -1004,5 +1004,5 @@ class TargetCoreAPI {
}

module.exports = {
init: init
init
}
56 changes: 28 additions & 28 deletions test/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,37 +676,37 @@ const batch = {
}

const data = {
activities: activities,
abActivity: abActivity,
xtActivity: xtActivity,
abActivityUpdated: abActivityUpdated,
xtActivityUpdated: xtActivityUpdated,
nameActivity: nameActivity,
changeLog: changeLog,
offers: offers,
offer: offer,
newOffer: newOffer,
updatedOffer: updatedOffer,
audiences: audiences,
audience: audience,
newAudience: newAudience,
updatedAudience: updatedAudience,
properties: properties,
property: property,
mboxes: mboxes,
mbox: mbox,
attributes: attributes,
mboxParams: mboxParams,
environments: environments,
abPerformance: abPerformance,
xtPerformance: xtPerformance,
performance: performance,
report: report,
batch: batch
activities,
abActivity,
xtActivity,
abActivityUpdated,
xtActivityUpdated,
nameActivity,
changeLog,
offers,
offer,
newOffer,
updatedOffer,
audiences,
audience,
newAudience,
updatedAudience,
properties,
property,
mboxes,
mbox,
attributes,
mboxParams,
environments,
abPerformance,
xtPerformance,
performance,
report,
batch
}

module.exports = {
data: data,
data,
errors: {
Bad_Request: BadRequest,
Unauthorized_Request: UnauthorizedRequest,
Expand Down

0 comments on commit 3729858

Please sign in to comment.