v3 new release (#84)

swap to graphql
This commit is contained in:
github-actions[bot]
2022-07-11 13:48:02 -04:00
committed by GitHub
parent 20d2b4f98d
commit e4f3964f67
1492 changed files with 63799 additions and 63001 deletions

View File

@ -129,7 +129,11 @@ function stop() {
function setScope() {
if (this.opts && this.opts.noScope) return;
let path = this.parentPath;
if (this.key === "key" && path.isMethod()) path = path.parentPath;
if ((this.key === "key" || this.listKey === "decorators") && path.isMethod()) {
path = path.parentPath;
}
let target;
while (path && !target) {
@ -177,7 +181,10 @@ function _resyncParent() {
function _resyncKey() {
if (!this.container) return;
if (this.node === this.container[this.key]) return;
if (this.node === this.container[this.key]) {
return;
}
if (Array.isArray(this.container)) {
for (let i = 0; i < this.container.length; i++) {