Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
39ca1f18db
|
|||
|
8ac75935ac
|
|||
|
aa2d0ed58b
|
2
dist/places.d.ts
vendored
2
dist/places.d.ts
vendored
@@ -83,7 +83,7 @@ export interface PlacesClient {
|
||||
/**
|
||||
* Store a place.
|
||||
* Generates ID and Geohash if missing.
|
||||
* Path structure: <geohash-prefix-2>/<geohash-prefix-2>/<id>
|
||||
* Path structure: `<geohash-prefix-2>/<geohash-prefix-2>/<id>`
|
||||
*
|
||||
* @param placeData - The data of the place to store.
|
||||
* @returns The stored place object.
|
||||
|
||||
2
dist/places.js
vendored
2
dist/places.js
vendored
@@ -71,7 +71,7 @@ const Places = function (privateClient /*, publicClient: BaseClient */) {
|
||||
/**
|
||||
* Store a place.
|
||||
* Generates ID and Geohash if missing.
|
||||
* Path structure: <geohash-prefix-2>/<geohash-prefix-2>/<id>
|
||||
* Path structure: `<geohash-prefix-2>/<geohash-prefix-2>/<id>`
|
||||
*/
|
||||
store: async function (placeData) {
|
||||
const place = preparePlace(placeData);
|
||||
|
||||
@@ -118,7 +118,7 @@ The geohash of the place.
|
||||
|
||||
Store a place.
|
||||
Generates ID and Geohash if missing.
|
||||
Path structure: <geohash-prefix-2>/<geohash-prefix-2>/<id>
|
||||
Path structure: `<geohash-prefix-2>/<geohash-prefix-2>/<id>`
|
||||
|
||||
#### Parameters
|
||||
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@remotestorage/module-places",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@remotestorage/module-places",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"latlon-geohash": "^2.0.0",
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
{
|
||||
"name": "@remotestorage/module-places",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "Manage favorite/saved places",
|
||||
"homepage": "https://gitea.kosmos.org/raucao/remotestorage-module-places#remotestoragemodule-places",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://gitea.kosmos.org/raucao/remotestorage-module-places.git"
|
||||
},
|
||||
"main": "dist/places.js",
|
||||
"types": "dist/places.d.ts",
|
||||
"type": "module",
|
||||
|
||||
@@ -56,7 +56,7 @@ export interface PlacesClient {
|
||||
/**
|
||||
* Store a place.
|
||||
* Generates ID and Geohash if missing.
|
||||
* Path structure: <geohash-prefix-2>/<geohash-prefix-2>/<id>
|
||||
* Path structure: `<geohash-prefix-2>/<geohash-prefix-2>/<id>`
|
||||
*
|
||||
* @param placeData - The data of the place to store.
|
||||
* @returns The stored place object.
|
||||
@@ -157,7 +157,7 @@ const Places = function (
|
||||
/**
|
||||
* Store a place.
|
||||
* Generates ID and Geohash if missing.
|
||||
* Path structure: <geohash-prefix-2>/<geohash-prefix-2>/<id>
|
||||
* Path structure: `<geohash-prefix-2>/<geohash-prefix-2>/<id>`
|
||||
*/
|
||||
store: async function (placeData: Partial<Place>) {
|
||||
const place = preparePlace(placeData);
|
||||
|
||||
Reference in New Issue
Block a user