sfdx-git-delta
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -106,2 +106,5 @@ 'use strict' | ||
) | ||
expect(work.diffs.destructiveChanges).not.toHaveProperty('workflows') | ||
expect(work.diffs.destructiveChanges).not.toHaveProperty('labels') | ||
expect(work.diffs.destructiveChanges).not.toHaveProperty('sharingRules') | ||
}) | ||
@@ -108,0 +111,0 @@ test('modification', () => { |
'use strict' | ||
const fileGitDiff = require('../utils/fileGitDiff') | ||
const gc = require('../utils/gitConstants') | ||
const mc = require('../utils/metadataConstants') | ||
const StandardHandler = require('./standardHandler') | ||
@@ -28,2 +29,3 @@ const fs = require('fs') | ||
super(line, type, work, metadata) | ||
this.customLabelMetadata = this.metadata[mc.LABEL_DIRECTORY_NAME] | ||
this.xmlObjectToPackageType = Object.keys(this.metadata) | ||
@@ -43,3 +45,2 @@ .filter(meta => !!this.metadata[meta].xmlTag) | ||
handleDeletion() { | ||
super.handleDeletion() | ||
this._handleInFile() | ||
@@ -139,4 +140,7 @@ } | ||
_fillPackageFromDiff(packageObject, subType, value) { | ||
const _type = subType == 'labels' ? 'label' : subType | ||
const elementFullName = `${(_type !== 'label' | ||
const _type = | ||
subType === this.customLabelMetadata.xmlTag | ||
? this.customLabelMetadata.directoryName | ||
: subType | ||
const elementFullName = `${(_type !== this.customLabelMetadata.directoryName | ||
? `${path.basename(this.line).split('.')[0]}.` | ||
@@ -143,0 +147,0 @@ : '') + value}` |
@@ -40,2 +40,3 @@ 'use strict' | ||
} catch (error) { | ||
error.message = `${this.line}: ${error.message}` | ||
this.warnings.push(error) | ||
@@ -42,0 +43,0 @@ } |
@@ -6,2 +6,3 @@ 'use strict' | ||
const FIELD_DIRECTORY_NAME = 'fields' | ||
const LABEL_DIRECTORY_NAME = 'label' | ||
const INFOLDER_METAFILE_SUFFIX = `Folder${METAFILE_SUFFIX}` | ||
@@ -12,2 +13,3 @@ module.exports.METAFILE_SUFFIX = METAFILE_SUFFIX | ||
module.exports.FIELD_DIRECTORY_NAME = FIELD_DIRECTORY_NAME | ||
module.exports.LABEL_DIRECTORY_NAME = LABEL_DIRECTORY_NAME | ||
module.exports.INFOLDER_METAFILE_SUFFIX = INFOLDER_METAFILE_SUFFIX |
{ | ||
"name": "sfdx-git-delta", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Generate the sfdx content in source format and destructive change from two git commits", | ||
@@ -5,0 +5,0 @@ "keyword": [ |
@@ -130,3 +130,2 @@ [![NPM](https://nodei.co/npm/sfdx-git-delta.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/sfdx-git-delta/) [![NPM](https://nodei.co/npm-dl/sfdx-git-delta.png)](https://nodei.co/npm/sfdx-git-delta/) [![HitCount](http://hits.dwyl.com/scolladon/sfdx-git-delta.svg)](http://hits.dwyl.com/scolladon/sfdx-git-delta) | ||
In addition, we could also have generated a copy of the **force-app** folder with only the added and changed metadata, by using the `--generate-delta (-d)` option (more on that later). | ||
@@ -180,4 +179,2 @@ | ||
## Javascript Module | ||
@@ -221,4 +218,10 @@ | ||
## Contributing | ||
Contributions are what make the trailblazer community such an amazing place. I regard this component as a way to inspire and learn from others. Any contributions you make are **greatly appreciated**. | ||
See [contributing.md](/CONTRIBUTING.md) for lwcc principles. | ||
## License | ||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details |
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
348720
62
3976
225