wio.db
Advanced tools
Comparing version 4.0.16 to 4.0.17-beta.1
{ | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
@@ -7,3 +8,4 @@ "ecmaVersion": 2017 | ||
"node": true, | ||
"es6": true | ||
"es6": true, | ||
"commonjs": true | ||
}, | ||
@@ -22,4 +24,4 @@ "rules": { | ||
"valid-typeof": "error", | ||
"default-case": "error", | ||
"no-extra-bind": "error", | ||
"no-eval": "error", | ||
"no-eq-null": "error", | ||
@@ -59,3 +61,3 @@ "no-labels": "error", | ||
{ | ||
"code": 500 | ||
"code": 1000 | ||
} | ||
@@ -65,3 +67,3 @@ ], | ||
"error", | ||
500 | ||
1000 | ||
], | ||
@@ -68,0 +70,0 @@ "no-new-object": "error", |
@@ -1,3 +0,4 @@ | ||
const Database = require("./src/main.js"); | ||
const JsonDatabase = require("./src/JsonProvider"); | ||
const DatabaseError = require("./src/Error"); | ||
const YamlDatabase = require("./src/YamlProvider"); | ||
@@ -9,6 +10,6 @@ | ||
module.exports = { | ||
Database, | ||
JsonDatabase, | ||
YamlDatabase, | ||
DatabaseError | ||
}; |
{ | ||
"name": "wio.db", | ||
"version": "4.0.16", | ||
"version": "4.0.17-beta.1", | ||
"description": "Gözle okunabilir database modülü.", | ||
@@ -10,3 +10,4 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "clear && nodemon test/test.js" | ||
"test": "clear && nodemon test/test.js", | ||
"lint": "eslint src --fix" | ||
}, | ||
@@ -20,3 +21,4 @@ "types": "types/index.d.ts", | ||
"turkish", | ||
"json" | ||
"json", | ||
"yaml" | ||
], | ||
@@ -30,5 +32,10 @@ "author": "wioenena.q", | ||
"dependencies": { | ||
"lodash": "^4.17.21" | ||
"lodash": "^4.17.21", | ||
"yaml": "^1.10.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.13.10", | ||
"@babel/eslint-parser": "^7.13.10", | ||
"@babel/plugin-proposal-class-properties": "^7.13.0", | ||
"@babel/plugin-proposal-private-methods": "^7.13.0", | ||
"@types/lodash": "^4.14.168", | ||
@@ -35,0 +42,0 @@ "@types/node": "^14.14.34", |
@@ -11,2 +11,5 @@ ![Image](https://img.shields.io/npm/v/wio.db?color=%2351F9C0&label=Wio.db) | ||
``` | ||
# News | ||
Yaml Support<br> | ||
- Json specific features have also been added to yaml | ||
@@ -18,2 +21,3 @@ # Uyarı || Warning | ||
## Nasıl Kullanılır? || how to use? | ||
# TypeScript | ||
@@ -25,5 +29,10 @@ ```typescript | ||
```javascript | ||
const { Database } = require("wio.db"); | ||
const db = new Database("myDatabase"); | ||
const { | ||
JsonDatabase, | ||
YamlDatabase | ||
} = require("wio.db"); | ||
const db = new JsonDatabase("myDatabase"); | ||
const yamldb = new YamlDatabase("myDatabase"); | ||
// Data set | get | ||
@@ -72,3 +81,3 @@ db.set("data1", 1); | ||
db.included("da"); | ||
db.includes("da"); | ||
db.startsWith("da"); | ||
@@ -82,3 +91,3 @@ db.findAndDelete((key,value) => { | ||
console.log(db.totalDBSize); | ||
console.log(Database.DBCollection); | ||
console.log(JsonDatabase.DBCollection); | ||
@@ -91,1 +100,2 @@ | ||
[İnstagram](https://www.instagram.com/wioenena.q/) | ||
[Discord](https://discord.gg/8N4cq3weqU) |
@@ -23,3 +23,3 @@ const green = (message) => `\x1b[32m${message}\x1b[0m`; | ||
get name() { | ||
return yellow(`[ WioDB ] => ${this.constructor.name}`) | ||
return yellow(`[ WioDB ] => ${this.constructor.name}`); | ||
} | ||
@@ -26,0 +26,0 @@ } |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
36949
11
1168
96
2
9
1
2
1
+ Addedyaml@^1.10.2
+ Addedyaml@1.10.2(transitive)