Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "gpxload", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "SignalK Server plugin to import / export GPX files", | ||
@@ -8,3 +8,4 @@ "main": "src/index.js", | ||
"signalk-node-server-plugin", | ||
"signalk-webapp" | ||
"signalk-webapp", | ||
"signalk" | ||
], | ||
@@ -11,0 +12,0 @@ "repository": "https://bitbucket.org/panaaj/signalk-gpx-plugin", |
@@ -5,3 +5,3 @@ # signalk-gpx-plugin | ||
Selected resources in GPX files can be loaded using the Web UI that is accessed via the url: *http://signalk-server/@signalk/gpxload/* | ||
Selected resources in GPX files can be loaded using the Web UI that is accessed via the url: *http://signalk-server/gpxload/* | ||
@@ -16,3 +16,3 @@ Once loaded, the imported routes, waypoints and tracks are made available via the SignalK server http api *http://signalk-server/signalk/v1/api/resources/*. | ||
1) Open the Web App at the url: *http://<server>/@signalk/gpxload/* | ||
1) Open the Web App at the url: *http://<server>/gpxload/* | ||
@@ -32,3 +32,3 @@ 2) Select the **Import GPX** tab and click **Open GPX file** | ||
1) Open the Web App at the url: *http://signalk-server/@signalk/gpxload/* | ||
1) Open the Web App at the url: *http://signalk-server/gpxload/* | ||
@@ -35,0 +35,0 @@ 2) Select the **Export to GPX** tab and a list of available resources are displayed. |
@@ -35,3 +35,4 @@ /* | ||
waypoint: { path: path.join(savePath, '/waypoints')}, | ||
track: { path: path.join(savePath, '/tracks')} | ||
track: { path: path.join(savePath, '/tracks')}, | ||
location: { path: path.join(savePath, '/locations')} | ||
} | ||
@@ -69,6 +70,3 @@ | ||
plugin.schema= { | ||
properties: { | ||
} | ||
} | ||
plugin.schema= { properties: { } } | ||
@@ -137,8 +135,3 @@ plugin.uiSchema= { } | ||
) | ||
}) | ||
/*router.get('/resources', (req, res) => { | ||
res.json( | ||
getPersistedResources(null) | ||
) | ||
})*/ | ||
}) | ||
@@ -186,5 +179,4 @@ return router | ||
app.debug(`** Loading resources.........`) | ||
if(!Array.isArray(data)) { | ||
app.debug(`** ERROR: ** Inavlid payload data!!`) | ||
app.debug(`** ERROR: ** Invalid payload data!!`) | ||
return | ||
@@ -229,3 +221,7 @@ } | ||
catch(err) { | ||
return {error: true, message: 'Error reteiving resources. Ensure plugin is active or restart plugin!'} | ||
return { | ||
error: true, | ||
message: `Error retreiving resources from ${savePath}. Ensure plugin is active or restart plugin!`, | ||
source: plugin.id | ||
} | ||
} | ||
@@ -232,0 +228,0 @@ } |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1589010
1031
1