Skip to content

Commit

Permalink
hmmm
Browse files Browse the repository at this point in the history
  • Loading branch information
ulughann committed Oct 9, 2023
1 parent 7e8bbdd commit a614a03
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 24 deletions.
28 changes: 26 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,36 @@
".vscode": true,
".github": true,
"static": true,
"node_modules": true
"node_modules": true,
"tsconfig.esm.json": true,
"tsconfig.json": true,
"tsconfig.cjs.json": true,
"tsconfig.types.json": true,
"package-lock.json": true,
"CNAME": true,
"CHANGELOG.md": true,
".npmignore": true,
".gitignore": true,
"docs": true,
"dist": true,
"nodemon.json": true
},
"hide-files.files": [
".vscode",
".github",
"static",
"node_modules"
"node_modules",
"tsconfig.esm.json",
"tsconfig.json",
"tsconfig.cjs.json",
"tsconfig.types.json",
"package-lock.json",
"CNAME",
"CHANGELOG.md",
".npmignore",
".gitignore",
"docs",
"dist",
"nodemon.json"
]
}
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ import { Action } from "./src/Action"
import { Table } from "./src/Table"
import { Database } from "./src/Database"
import { Toml } from "./src/Toml"
import { Mithril } from "./src/Mithril"

export { Collection, Database, ElementInData, Action, Table, Toml }
export { Collection, Database, ElementInData, Action, Table, Toml, Mithril }
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"watch": ["./"],
"ext": ".ts,.js",
"ignore": [],
"exec": "npx ts-node ./tests/tests.ts"
"exec": "npx ts-node ./tests/tests.test.ts"
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
"url": "https://onrirr.github.io/yDB/#/",
"repository": "github:onrirr/ydb",
"main": "./dist/esm/index.js",
"categories": [
"database",
"yaml",
"yml",
"json",
"quick.db",
"quickdb",
"ydb.js",
"ydb"
],
"scripts": {
"compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json",
"start": "npx nodemon"
Expand Down
1 change: 0 additions & 1 deletion src/Collection.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { formatErrorMessage } from "./util";
export class Collection {

map: Map<any, any>;
constructor(values?: IterableIterator<any>) {
this.map = new Map(values ? values : []);
Expand Down
4 changes: 1 addition & 3 deletions src/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ class Database extends EventEmitter {
"debug",
`[${new Date().toISOString().substring(11, 19)}][ydb][File ${
this.path
}] An item has been deleted with name ${JSON.stringify(
key
)}`
}] An item has been deleted with name ${JSON.stringify(key)}`
);
return true;
}
Expand Down
5 changes: 5 additions & 0 deletions src/Mithril.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export class Mithril {
constructor() {
console.log("Welcome to Mithril.")
}
}
3 changes: 1 addition & 2 deletions src/Toml.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
//@ts-nocheck

import { readFileSync } from "fs"
import { readFileSync } from "fs";

export class Toml {
static parse = parse;
static read = read;
}


const indexOf =
[].indexOf ||
function (item: an4y) {
Expand Down
2 changes: 2 additions & 0 deletions tests/tests.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { Mithril } from "../index";
const a = new Mithril();
2 changes: 0 additions & 2 deletions tests/tests.ts

This file was deleted.

0 comments on commit a614a03

Please sign in to comment.