@dainprotocol/cli 1.1.15 → 1.1.19
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/dist/commands/dev.js
CHANGED
|
@@ -101,7 +101,7 @@ function cleanup() {
|
|
|
101
101
|
}
|
|
102
102
|
function dev(options) {
|
|
103
103
|
return __awaiter(this, void 0, void 0, function () {
|
|
104
|
-
var config, runtime, command, envVars, proxyServer, watchPaths, dainDir, outFile, MFconfig_1, debounceTimer_1, watchDirs, error_1;
|
|
104
|
+
var config, runtime, tsNodePath, command, envVars, proxyServer, watchPaths, dainDir, outFile, MFconfig_1, debounceTimer_1, watchDirs, error_1;
|
|
105
105
|
return __generator(this, function (_a) {
|
|
106
106
|
switch (_a.label) {
|
|
107
107
|
case 0:
|
|
@@ -109,7 +109,8 @@ function dev(options) {
|
|
|
109
109
|
console.log('Config: ' + JSON.stringify(config));
|
|
110
110
|
runtime = options.runtime || config.runtime || 'node';
|
|
111
111
|
console.log('Runtime: ' + runtime);
|
|
112
|
-
|
|
112
|
+
tsNodePath = path_1.default.join(process.cwd(), 'node_modules', '.bin', 'ts-node');
|
|
113
|
+
command = "\"".concat(tsNodePath, "\" \"").concat(config['main-file'], "\"");
|
|
113
114
|
envVars = {
|
|
114
115
|
PORT: options.port,
|
|
115
116
|
DAIN_API_KEY: config['api-key'],
|
|
@@ -61,7 +61,7 @@ const getWeatherConfig: ToolConfig = {
|
|
|
61
61
|
.title(`Current Weather in ${locationName} ${weatherEmoji}`)
|
|
62
62
|
.addChild(new MapUIBuilder()
|
|
63
63
|
.setInitialView(latitude, longitude, 10)
|
|
64
|
-
.setMapStyle('streets')
|
|
64
|
+
.setMapStyle('mapbox://styles/mapbox/streets-v12')
|
|
65
65
|
.addMarkers([
|
|
66
66
|
{
|
|
67
67
|
latitude,
|
|
@@ -136,7 +136,7 @@ const getWeatherForecastConfig: ToolConfig = {
|
|
|
136
136
|
.title(`Weather Forecast for ${locationName} ${weatherEmoji}`)
|
|
137
137
|
.addChild(new MapUIBuilder()
|
|
138
138
|
.setInitialView(latitude, longitude, 10)
|
|
139
|
-
.setMapStyle('streets')
|
|
139
|
+
.setMapStyle('mapbox://styles/mapbox/streets-v12')
|
|
140
140
|
.addMarkers([
|
|
141
141
|
{
|
|
142
142
|
latitude,
|
package/package.json
CHANGED
|
@@ -61,7 +61,7 @@ const getWeatherConfig: ToolConfig = {
|
|
|
61
61
|
.title(`Current Weather in ${locationName} ${weatherEmoji}`)
|
|
62
62
|
.addChild(new MapUIBuilder()
|
|
63
63
|
.setInitialView(latitude, longitude, 10)
|
|
64
|
-
.setMapStyle('streets')
|
|
64
|
+
.setMapStyle('mapbox://styles/mapbox/streets-v12')
|
|
65
65
|
.addMarkers([
|
|
66
66
|
{
|
|
67
67
|
latitude,
|
|
@@ -136,7 +136,7 @@ const getWeatherForecastConfig: ToolConfig = {
|
|
|
136
136
|
.title(`Weather Forecast for ${locationName} ${weatherEmoji}`)
|
|
137
137
|
.addChild(new MapUIBuilder()
|
|
138
138
|
.setInitialView(latitude, longitude, 10)
|
|
139
|
-
.setMapStyle('streets')
|
|
139
|
+
.setMapStyle('mapbox://styles/mapbox/streets-v12')
|
|
140
140
|
.addMarkers([
|
|
141
141
|
{
|
|
142
142
|
latitude,
|