From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Mon, 14 Aug 2017 05:01:11 +0200
Subject: node_modules

---
 node_modules/ajv/lib/dot/definitions.def | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

(limited to 'node_modules/ajv/lib/dot/definitions.def')

diff --git a/node_modules/ajv/lib/dot/definitions.def b/node_modules/ajv/lib/dot/definitions.def
index a442346f5..cdbe140bb 100644
--- a/node_modules/ajv/lib/dot/definitions.def
+++ b/node_modules/ajv/lib/dot/definitions.def
@@ -113,12 +113,12 @@
 {{## def.cleanUp: {{ out = it.util.cleanUpCode(out); }} #}}
 
 
-{{## def.cleanUpVarErrors: {{ out = it.util.cleanUpVarErrors(out, $async); }} #}}
+{{## def.finalCleanUp: {{ out = it.util.finalCleanUpCode(out, $async); }} #}}
 
 
 {{## def.$data:
   {{
-    var $isData = it.opts.v5 && $schema && $schema.$data
+    var $isData = it.opts.$data && $schema && $schema.$data
       , $schemaValue;
   }}
   {{? $isData }}
@@ -175,8 +175,25 @@
 #}}
 
 
-{{## def.checkOwnProperty:
+{{## def.iterateProperties:
   {{? $ownProperties }}
-    if (!Object.prototype.hasOwnProperty.call({{=$data}}, {{=$key}})) continue;
+    {{=$dataProperties}} = {{=$dataProperties}} || Object.keys({{=$data}});
+    for (var {{=$idx}}=0; {{=$idx}}<{{=$dataProperties}}.length; {{=$idx}}++) {
+      var {{=$key}} = {{=$dataProperties}}[{{=$idx}}];
+  {{??}}
+    for (var {{=$key}} in {{=$data}}) {
   {{?}}
 #}}
+
+
+{{## def.noPropertyInData:
+  {{=$useData}} === undefined
+  {{? $ownProperties }}
+    || !{{# def.isOwnProperty }}
+  {{?}}
+#}}
+
+
+{{## def.isOwnProperty:
+  Object.prototype.hasOwnProperty.call({{=$data}}, '{{=it.util.escapeQuotes($propertyKey)}}')
+#}}
-- 
cgit v1.2.3

