We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcaa89 commit aa7ec8bCopy full SHA for aa7ec8b
1 file changed
packages/cli/src/fingerprint/canonicalize/packageDependencies.js
@@ -1,6 +1,6 @@
1
/* eslint-disable @typescript-eslint/unbound-method */
2
/* eslint-disable class-methods-use-this */
3
-const { CodeObject } = require('@appland/models');
+const { CodeObjectType } = require('@appland/models');
4
const Unique = require('./unique');
5
6
function packageOf(codeObject) {
@@ -9,7 +9,7 @@ function packageOf(codeObject) {
9
}
10
11
const ancestors = [codeObject, ...codeObject.ancestors()];
12
- let packageObject = ancestors.find((a) => a.type === CodeObject.PACKAGE);
+ let packageObject = ancestors.find((a) => a.type === CodeObjectType.PACKAGE);
13
if (!packageObject && ancestors.length >= 1) {
14
packageObject = ancestors[ancestors.length - 1];
15
0 commit comments