uql-codemod 0.45.0 → 0.46.0
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/dist/transform.js +1 -4
- package/package.json +1 -1
package/dist/transform.js
CHANGED
|
@@ -793,9 +793,6 @@ function admitNull(options, node, ctx) {
|
|
|
793
793
|
* so the declaration is found there rather than under a decorator.
|
|
794
794
|
*/
|
|
795
795
|
function admitNullOnDefined(field, owner, ctx) {
|
|
796
|
-
if (!ts.isPropertyAssignment(field)) {
|
|
797
|
-
return;
|
|
798
|
-
}
|
|
799
796
|
const key = propertyKey(field.name);
|
|
800
797
|
const declaration = key
|
|
801
798
|
? instanceTypeOf(owner.entity, ctx.checker)
|
|
@@ -887,7 +884,7 @@ function renameExports(source, dead, ctx) {
|
|
|
887
884
|
function renamedTo(element, entry) {
|
|
888
885
|
const name = importedName(element);
|
|
889
886
|
const rename = RENAMED_EXPORTS.get(name);
|
|
890
|
-
return rename?.to === name &&
|
|
887
|
+
return rename?.to === name && rename.from === entry ? undefined : rename;
|
|
891
888
|
}
|
|
892
889
|
/** Every identifier in the file bound to the same symbol as `name`, besides `name` itself. */
|
|
893
890
|
function usesOf(source, name, checker) {
|