Comparing version 1.0.3 to 1.0.4
@@ -9,2 +9,3 @@ export declare function get(...keys: string[]): Promise<any[] | null>; | ||
export declare function applyObject(object: object): Promise<boolean>; | ||
export declare function import(url: string): Promise<boolean>; | ||
declare function _import(url: string): Promise<boolean>; | ||
export { _import as import }; |
{ | ||
"name": "ez-repldb", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Use Replit's database with ease with EZReplDB!", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -151,2 +151,25 @@ # EZReplDB | ||
``` | ||
--- | ||
## Properties | ||
These are properties of the exported database object. | ||
--- | ||
```js | ||
db.url; | ||
``` | ||
This property allows you access to the full URL used by all database methods, you can actually set this to a different Repl's database URL and all the methods will interact with that database instead. | ||
> Note: You can `get` and `set` this property, `set`ing it will also change the value of `db.path`. | ||
--- | ||
```js | ||
db.host; | ||
``` | ||
This property allows you to see the host of your Replit database (which will always be `kv.replit.com`). | ||
> Note: You can only `get` this property, `set`ing it will not change its value. | ||
--- | ||
```js | ||
db.path; | ||
``` | ||
This property allows you to see the path of your Replit database. | ||
> Note: You can only `get` this property, `set`ing it will not change its value (although it's value will be changed if `db.url` is altered). | ||
--- |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
14009
9
174