owl-cli 6.157.0 → 6.158.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/bin/owl.js CHANGED
@@ -164,7 +164,14 @@ function processOwl(owl, outdir, templatePath, buildType, inputFile) {
164
164
 
165
165
  var fileContent = fs.readFileSync(fullname, {encoding: 'utf-8'})
166
166
 
167
+ var dynamicIndex = owl["_dynamicIndex"];
168
+ if(!dynamicIndex){
169
+ dynamicIndex = "false";
170
+ }
167
171
  fileContent = fileContent.replace(/@projectCode/g, projectCode)
172
+ fileContent = fileContent.replace(/@dynamicIndex/g, dynamicIndex)
173
+
174
+
168
175
  fileContent = fileContent.replace(/@projectName/g, projectName)
169
176
  fileContent = fileContent.replace(/@meta/g, JSON.stringify(meta))
170
177
  fileContent = fileContent.replace(/@formSpecs/g, JSON.stringify(formSpecs))
@@ -13,7 +13,25 @@
13
13
  }
14
14
  },
15
15
  "mappings": {
16
- "dynamic": "false",
16
+ "dynamic": "@dynamicIndex",
17
+ "dynamic_templates": [
18
+ {
19
+ "integers": {
20
+ "match_mapping_type": "long",
21
+ "mapping": {
22
+ "type": "double"
23
+ }
24
+ }
25
+ },{
26
+ "geo_point": {
27
+ "match_mapping_type": "object",
28
+ "match": "*_geo_point",
29
+ "mapping": {
30
+ "type": "geo_point"
31
+ }
32
+ }
33
+ }
34
+ ],
17
35
  "properties": {
18
36
  "m": {
19
37
  "type": "keyword"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.157.0",
3
+ "version": "6.158.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {