Skip to content

Commit 60daced

Browse files
committed
update more deprecated uses
1 parent b9a2d06 commit 60daced

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

javascript/ql/examples/snippets/importfrom.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
import javascript
1212

1313
from ImportDeclaration id
14-
where id.getImportedPath().getValue() = "react"
14+
where id.getImportedPathString() = "react"
1515
select id

javascript/ql/src/Declarations/UnstableCyclicImport.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ where cycleAlert(mod, import_, importedModule, access)
152152
select access,
153153
access.getName() + " is uninitialized if $@ is loaded first in the cyclic import:" + " " +
154154
repr(import_) + " => " + min(pathToModule(importedModule, mod, _)) + " => " + repr(import_) +
155-
".", import_.getImportedPath(), importedModule.getName()
155+
".", import_.getImportedPathExpr(), importedModule.getName()

javascript/ql/src/NodeJS/UnresolvableImport.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PackageJson getClosestPackageJson(Folder f) {
2424

2525
from Require r, string path, string mod
2626
where
27-
path = r.getImportedPath().getValue() and
27+
path = r.getImportedPathString() and
2828
// the imported module is the initial segment of the path, up to
2929
// `/` or the end of the string, whichever comes first; we exclude
3030
// local paths starting with `.` or `/`, since they might refer to files

0 commit comments

Comments
 (0)