@discoveryjs/cli
Advanced tools
Comparing version 2.11.0 to 2.11.1
@@ -200,3 +200,2 @@ const fs = require('fs'); | ||
const { discoveryDir, discoveryDev } = getDiscoveryDir(process.cwd()); | ||
const { version } = require(path.join(discoveryDir, 'package.json')); | ||
const outputDir = options.output; | ||
@@ -281,3 +280,2 @@ const files = new Map(); | ||
global: 'window', | ||
DISCOVERY_VERSION: version, | ||
SINGLE_FILE: booleanStr(options.singleFile), | ||
@@ -284,0 +282,0 @@ MODEL_DOWNLOAD: booleanStr(options.modelDownload), |
@@ -35,5 +35,10 @@ /* eslint-env browser */ | ||
defaultPage: [ | ||
// 'h1:#.model.name', | ||
'app-header:#.model', | ||
{ | ||
view: 'switch', | ||
content: [ | ||
{ when: () => viewModel.view.isDefined('app-header'), content: 'app-header:#.model' }, | ||
{ content: 'h1{ className: "default-header", data: #.model.name }' } | ||
] | ||
}, | ||
{ | ||
view: 'ul', | ||
@@ -40,0 +45,0 @@ data: '#.models', |
{ | ||
"name": "@discoveryjs/cli", | ||
"version": "2.11.0", | ||
"version": "2.11.1", | ||
"description": "CLI tools to serve & build projects based on Discovery.js", | ||
@@ -5,0 +5,0 @@ "author": "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)", |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
254400
4687
25