Skip to content

Commit

Permalink
Remove changeset diff as export
Browse files Browse the repository at this point in the history
  • Loading branch information
umesh-timalsina committed Oct 3, 2022
1 parent e3e2322 commit 6dce159
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lib/common/JSONImporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ import {NodeChangeSet} from './JSONImporter/NodeChangeSet';
import {NodeSelector} from './JSONImporter/NodeSelectors';
import {gmeDiff} from './JSONImporter/SortedChanges';

import diff from 'changeset';

export default Importer;
export {OmittedProperties, NodeSelections, diff, NodeChangeSet, NodeSelector, gmeDiff};
export {OmittedProperties, NodeSelections, NodeChangeSet, NodeSelector, gmeDiff};
1 change: 0 additions & 1 deletion lib/common/JSONImporter/Importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export class Importer {
const nodeSelectorKey = diff.nodeId.slice(0, 2);
return type === 'put' && key === 'children' && nodeSelectorKey === '@id';
};

return partition(diffs, isIdBasedCreation);
}

Expand Down
3 changes: 1 addition & 2 deletions src/common/JSONImporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
define([
'./build/JSONImporter.umd'
], function (ImporterLib) {
const {default: JSONImporter, diff, NodeSelections, NodeChangeSet, NodeSelector, OmittedProperties, gmeDiff} = ImporterLib;
const {default: JSONImporter, NodeSelections, NodeChangeSet, NodeSelector, OmittedProperties, gmeDiff} = ImporterLib;

JSONImporter.diff = diff;
JSONImporter.NodeChangeSet = NodeChangeSet;
JSONImporter.NodeSelections = NodeSelections;
JSONImporter.NodeSelector = NodeSelector;
Expand Down

0 comments on commit 6dce159

Please sign in to comment.