@ds-sfdc/sfparty 1.7.7 → 1.7.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ds-sfdc/sfparty",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "description": "Salesforce metadata XML splitter for CI/CD",
5
5
  "type": "module",
6
6
  "repository": {
@@ -22,32 +22,32 @@
22
22
  "license": "BSD-3-Clause",
23
23
  "dependencies": {
24
24
  "axios": "^1.7.7",
25
- "ci-info": "^4.0.0",
25
+ "ci-info": "^4.1.0",
26
26
  "cli-color": "^2.0.4",
27
27
  "cli-spinners": "^2.9.2",
28
28
  "convert-hrtime": "^5.0.0",
29
29
  "js-yaml": "^4.1.0",
30
30
  "log-update": "^6.1.0",
31
- "marked": "^13.0.3",
32
- "marked-terminal": "^7.1.0",
31
+ "marked": "^14.1.3",
32
+ "marked-terminal": "^7.2.1",
33
33
  "pretty-quick": "^4.0.0",
34
34
  "semver": "^7.6.3",
35
35
  "util": "^0.12.5",
36
- "winston": "^3.14.2",
36
+ "winston": "^3.17.0",
37
37
  "xml2js": "^0.6.2",
38
38
  "yargs": "^17.7.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/core": "^7.25.2",
42
- "@babel/preset-env": "^7.25.4",
43
- "@commitlint/cli": "^19.5.0",
44
- "@commitlint/config-conventional": "^19.5.0",
41
+ "@babel/core": "^7.26.0",
42
+ "@babel/preset-env": "^7.26.0",
43
+ "@commitlint/cli": "^19.6.0",
44
+ "@commitlint/config-conventional": "^19.6.0",
45
45
  "babel-jest": "^29.7.0",
46
- "eslint": "^9.10.0",
47
- "husky": "^9.1.6",
46
+ "eslint": "^9.15.0",
47
+ "husky": "^9.1.7",
48
48
  "jest": "^29.7.0",
49
49
  "lint-staged": "^15.2.10",
50
- "nodemon": "^3.1.4",
50
+ "nodemon": "^3.1.7",
51
51
  "prettier": "^3.3.3"
52
52
  },
53
53
  "engines": {
@@ -15,12 +15,12 @@ export class Package {
15
15
  if (that.xmlPath === undefined)
16
16
  throw new Error('Package not initialized')
17
17
 
18
- let fileName = path.resolve(that.xmlPath)
18
+ const fileName = path.resolve(that.xmlPath)
19
19
  if (
20
20
  fileUtils.fileExists({ filePath: fileName, fs }) &&
21
21
  global.git.append
22
22
  ) {
23
- let data = fileUtils.readFile(fileName)
23
+ const data = fileUtils.readFile(fileName)
24
24
  data.then((json) => {
25
25
  try {
26
26
  if (
@@ -40,7 +40,7 @@ export class Package {
40
40
  })
41
41
  } else {
42
42
  try {
43
- let json = JSON.parse(
43
+ const json = JSON.parse(
44
44
  JSON.stringify(
45
45
  packageDefinition.metadataDefinition
46
46
  .emptyPackage,
@@ -59,7 +59,7 @@ export class Package {
59
59
 
60
60
  function processJSON(that, json, fileUtils) {
61
61
  try {
62
- let data = fileUtils.readFile(
62
+ const data = fileUtils.readFile(
63
63
  path.join(global.__basedir, 'sfdx-project.json'),
64
64
  )
65
65
  json.Package.version = data.sourceApiVersion
@@ -187,8 +187,8 @@ export class Package {
187
187
  }
188
188
 
189
189
  savePackage(xml2js, fileUtils) {
190
- let that = this
191
- let json = that.packageJSON.Package
190
+ const that = this
191
+ const json = that.packageJSON.Package
192
192
  try {
193
193
  json.$.xmlns = json.$.xmlns.replace('http:', 'https:')
194
194
  const version = json.version
@@ -200,7 +200,7 @@ export class Package {
200
200
  rootName: 'Package',
201
201
  xmldec: { version: '1.0', encoding: 'UTF-8' },
202
202
  })
203
- let fileName = that.xmlPath
203
+ const fileName = that.xmlPath
204
204
  fileUtils.createDirectory(path.dirname(fileName))
205
205
 
206
206
  const xml = builder.buildObject(json)
@@ -216,7 +216,7 @@ function transformJSON(json) {
216
216
  try {
217
217
  json.forEach((typesItem) => {
218
218
  Object.keys(typesItem).forEach((key) => {
219
- let jsonString = JSON.stringify(
219
+ const jsonString = JSON.stringify(
220
220
  typesItem[key],
221
221
  (name, value) => {
222
222
  if (key == 'members') {
package/src/meta/yargs.js CHANGED
@@ -35,6 +35,7 @@ const options = {
35
35
  }
36
36
 
37
37
  function getOptions(type) {
38
+ // eslint-disable-next-line prefer-const
38
39
  let optionObj = { ...options }
39
40
  Object.keys(optionObj).forEach((key) => {
40
41
  Object.keys(optionObj[key]).forEach((subKey) => {
@@ -109,6 +110,7 @@ const examples = [
109
110
  ]
110
111
 
111
112
  function getExamples(type) {
113
+ // eslint-disable-next-line prefer-const
112
114
  let exArr = [...examples]
113
115
  exArr.forEach((arrItem) => {
114
116
  arrItem[0] = arrItem[0].replaceAll('$1', type)