Skip to content

Commit

Permalink
release v 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Oct 13, 2018
1 parent 29295b7 commit 5e17d5d
Show file tree
Hide file tree
Showing 23 changed files with 25,529 additions and 5 deletions.
755 changes: 755 additions & 0 deletions dist/grammar.pegjs

Large diffs are not rendered by default.

7,990 changes: 7,990 additions & 0 deletions dist/parser.js

Large diffs are not rendered by default.

8,313 changes: 8,313 additions & 0 deletions dist/sqlweb.commonjs2.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/sqlweb.commonjs2.js.map

Large diffs are not rendered by default.

8,313 changes: 8,313 additions & 0 deletions dist/sqlweb.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/sqlweb.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/sqlweb.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/src/ts/code/config.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export declare class Config {
static isLogEnabled: boolean;
}
3 changes: 3 additions & 0 deletions dist/src/ts/code/enums.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export declare enum ERROR_TYPE {
SynTaxError = "syntax_error",
}
Empty file added dist/src/ts/code/helper.d.ts
Empty file.
2 changes: 2 additions & 0 deletions dist/src/ts/code/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './instance';
export * from './query';
14 changes: 14 additions & 0 deletions dist/src/ts/code/instance.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Query } from '.';
export declare class Instance {
private jsStoreCon_;
constructor(workerPath: any);
private isString_(value);
runQuery(query: string | Query): any;
/**
* set log status, accepts boolean value
*
* @param {boolean} status
* @memberof Instance
*/
setLogStatus(status: boolean): void;
}
5 changes: 5 additions & 0 deletions dist/src/ts/code/interfaces.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { ERROR_TYPE } from "./enums";
export interface IError {
type: ERROR_TYPE;
message: string;
}
13 changes: 13 additions & 0 deletions dist/src/ts/code/log_helper.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { IError } from "./interfaces";
import { ERROR_TYPE } from "./enums";
export declare class LogHelper implements IError {
type: ERROR_TYPE;
message: string;
private info_;
constructor(type: ERROR_TYPE, info?: any);
static log(msg: any): void;
logError(): void;
logWarning(): void;
get(): IError;
private getMsg_();
}
8 changes: 8 additions & 0 deletions dist/src/ts/code/query.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export declare class Query {
query_: any;
private topLevelKeys_;
constructor(qry: string);
map(key: string, value: any): void;
private isString_(value);
private parseJson_(value);
}
4 changes: 4 additions & 0 deletions dist/src/ts/code/util.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export declare class Util {
static isString(value: any): boolean;
static parseJson(value: any): any;
}
Empty file.
69 changes: 68 additions & 1 deletion package-lock.json

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

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sqlweb",
"version": "1.0.0",
"version": "1.0.1",
"description": "sql web is a sql wrapper for indexeddb. It takes query in sql and execute in indexeddb.",
"main": "index.js",
"scripts": {
Expand All @@ -14,7 +14,8 @@
"build:ci": "npm run build:dev && npm run build:prod",
"webpack:dev": "webpack --config src/webpack/webpack.dev.config.js",
"webpack:prod": "webpack --config src/webpack/webpack.prod.config.js",
"deploy": "npm run build:ci"
"move:deploy_file": "node src/deploy_helper.js",
"deploy": "npm run build:ci && npm run move:deploy_file"
},
"repository": {
"type": "git",
Expand All @@ -28,12 +29,14 @@
"homepage": "https://github.com/ujjwalguptaofficial/sqlweb#readme",
"devDependencies": {
"chai": "^4.1.2",
"fs-extra": "^7.0.0",
"karma": "^1.7.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
"mocha": "^4.0.1",
"mv": "^2.1.1",
"pegjs": "^0.10.0",
"puppeteer": "^0.13.0",
"smart-banner-webpack-plugin": "^3.0.1",
Expand Down
6 changes: 6 additions & 0 deletions src/deploy_helper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var {
createFolderIfNotExist
} = require('./helper');

const fs = require('fs-extra')
fs.copySync('./src/output', './dist');
17 changes: 17 additions & 0 deletions src/helper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
exports.getFileContent = function (path) {
return fs.readFileSync(`${path}`, {
encoding: 'utf8'
})
}

function saveAsFile(filePath, content) {
fs.writeFileSync(filePath, content, {
encoding: 'utf8'
})
}

exports.createFolderIfNotExist = function (path) {
if (!fs.existsSync(path)) {
fs.mkdirSync(path);
}
}
2 changes: 1 addition & 1 deletion src/license.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ if (mm < 10) {
var today = dd + '/' + mm + '/' + yyyy;

exports.banner = `@license :${package.name} - V${package.version} - ${today}
https://github.com/ujjwalguptaofficial/JsStore
https://github.com/ujjwalguptaofficial/sqlweb
Copyright (c) ${yyyy} @Ujjwal Gupta; Licensed ${package.license}`;
2 changes: 1 addition & 1 deletion src/test/karma.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (config) {
timeout: 10000 // 6 seconds - upped from 2 seconds
}
},
files: ['output/jsstore.min.js', 'output/jsstore.worker.min.js', ...files.list_of_files],
files: ['output/sqlweb.min.js', ...files.list_of_files],
proxies: {
'/test/': '/base/test/',
'/output/': '/base/output/'
Expand Down

0 comments on commit 5e17d5d

Please sign in to comment.