diff --git a/packages/core/src/predicate.ts b/packages/core/src/predicate.ts index e08961918f..b81772475c 100644 --- a/packages/core/src/predicate.ts +++ b/packages/core/src/predicate.ts @@ -28,7 +28,7 @@ const predicates: Record = { return (docs: Doc[]): Doc[] => { const result: Doc[] = [] for (const doc of docs) { - if (o.includes((doc as any)[propertyKey])) result.push(doc) + if (o.indexOf((doc as any)[propertyKey]) !== -1) result.push(doc) } return result } diff --git a/packages/platform-rig/profiles/default/tsconfig.json b/packages/platform-rig/profiles/default/tsconfig.json index 8e49496c5c..af9d0c5805 100644 --- a/packages/platform-rig/profiles/default/tsconfig.json +++ b/packages/platform-rig/profiles/default/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2016", + "target": "ES6", "module": "commonjs", "declaration": true, "strict": true,