Skip to content

Commit 120e1ec

Browse files
committed
Restructuring src
1 parent 3063956 commit 120e1ec

File tree

197 files changed

+8495
-26091
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+8495
-26091
lines changed

.eslintrc.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rules:
77
array-bracket-spacing: error
88
array-callback-return: error
99
array-element-newline: 0
10-
arrow-body-style: error
10+
arrow-body-style: 0
1111
arrow-parens: 0
1212
arrow-spacing: 0
1313
block-scoped-var: 'off'
@@ -29,7 +29,7 @@ rules:
2929
default-case: error
3030
dot-location: 0
3131
dot-notation: error
32-
eol-last: error
32+
eol-last: 0
3333
eqeqeq: error
3434
for-direction: error
3535
func-call-spacing: error
@@ -41,7 +41,7 @@ rules:
4141
function-paren-newline: 0
4242
generator-star-spacing: error
4343
getter-return: error
44-
global-require: error
44+
global-require: 0
4545
guard-for-in: error
4646
handle-callback-err: error
4747
id-blacklist: error
@@ -54,9 +54,9 @@ rules:
5454
jsx-quotes: 'off'
5555
key-spacing: error
5656
keyword-spacing:
57-
- error
58-
- after: true
59-
before: true
57+
- 0
58+
- after: 0
59+
- before: 0
6060
line-comment-position: 'off'
6161
linebreak-style: 'off'
6262
lines-around-comment: 'off'
@@ -81,9 +81,9 @@ rules:
8181
no-bitwise: 0
8282
no-buffer-constructor: error
8383
no-caller: error
84-
no-catch-shadow: error
84+
no-catch-shadow: 0
8585
no-confusing-arrow: error
86-
no-continue: error
86+
no-continue: 0
8787
no-div-regex: error
8888
no-duplicate-imports: error
8989
no-else-return: 'off'
@@ -108,9 +108,9 @@ rules:
108108
no-labels: error
109109
no-lone-blocks: error
110110
no-lonely-if: 'off'
111-
no-loop-func: error
111+
no-loop-func: 0
112112
no-magic-numbers: 'off'
113-
no-mixed-operators: error
113+
no-mixed-operators: 0
114114
no-mixed-requires: error
115115
no-multi-assign: 'off'
116116
no-multi-spaces: error
@@ -171,8 +171,8 @@ rules:
171171
no-whitespace-before-property: 0
172172
no-with: error
173173
nonblock-statement-body-position: 0
174-
object-curly-newline: error
175-
object-curly-spacing: error
174+
object-curly-newline: 0
175+
object-curly-spacing: 0
176176
object-property-newline: 'off'
177177
object-shorthand: 0
178178
one-var: 'off'
@@ -192,7 +192,7 @@ rules:
192192
prefer-template: 'off'
193193
quote-props: 'off'
194194
quotes: 'off'
195-
radix: error
195+
radix: 0
196196
require-await: error
197197
require-jsdoc: 'off'
198198
rest-spread-spacing: error
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"code":"import options from './17options';\r\nvar mem = {};\r\nvar yy = {};\r\nvar alasql = function (sql, params, cb, scope) {\r\n params = params || [];\r\n if (typeof importScripts !== 'function' && mem.webworker) {\r\n var id = mem.lastid++;\r\n mem.buffer[id] = cb;\r\n mem.webworker.postMessage({ id: id, sql: sql, params: params });\r\n return;\r\n }\r\n if (arguments.length === 0) {\r\n // Without arguments - Fluent interface\r\n return new yy.Select({\r\n columns: [new yy.Column({ columnid: '*' })],\r\n from: [new yy.ParamValue({ param: 0 })]\r\n });\r\n }\r\n else if (arguments.length === 1) {\r\n // Access promise notation without using `.promise(...)`\r\n if (sql.constructor === Array) {\r\n return alasql.promise(sql);\r\n }\r\n }\r\n // Avoid setting params if not needed even with callback\r\n if (typeof params === 'function') {\r\n scope = cb;\r\n cb = params;\r\n params = [];\r\n }\r\n if (typeof params !== 'object') {\r\n params = [params];\r\n }\r\n // Standard interface\r\n // alasql('#sql');\r\n /*only-for-browser/*\r\n if (typeof sql === 'string' && sql[0] === '#' && typeof document === 'object') {\r\n sql = document.querySelector(sql).textContent;\r\n } else if (typeof sql === 'object' && sql instanceof HTMLElement) {\r\n sql = sql.textContent;\r\n } else //*/\r\n if (typeof sql === 'function') {\r\n // to run multiline functions\r\n sql = sql.toString();\r\n sql = (/\\/\\*([\\S\\s]+)\\*\\//m.exec(sql) || [\r\n '',\r\n 'Function given as SQL. Plese Provide SQL string or have a /* ... */ syle comment with SQL in the function.',\r\n ])[1];\r\n }\r\n // Run SQL\r\n return alasql.exec(sql, params, cb, scope);\r\n};\r\n/**\r\n Current version of alasql\r\n @constant {string}\r\n*/\r\nalasql.version = 'PACKAGE_VERSION_NUMBER';\r\n/**\r\n Debug flag\r\n @type {boolean}\r\n*/\r\nalasql.debug = undefined; // Initial debug variable\r\noptions(alasql);\r\n/*only-for-browser/*\r\nvar require = function(){return null}; // as alasqlparser.js is generated, we can not \"remove\" referenses to\r\nvar __dirname = '';\r\n//*/\r\n/*only-for-browser/*\r\nif(utils.isCordova || utils.isMeteorServer || utils.isNode ){\r\n console.warn('It looks like you are using the browser version of AlaSQL. Please use the alasql.fs.js file instead.')\r\n}\r\n//*/\r\n// Create default database\r\n//! new Database(\"alasql\");\r\n// Set default database\r\nalasql.use(\"alasql\");\r\nexport default alasql;\r\n"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

.rpt2_cache/32114eb517e2c7da2b2bd761a75d9720a5518515/types/cache/63e24bad8af287db79503c51dc7bd19794223943

Whitespace-only changes.

.rpt2_cache/32114eb517e2c7da2b2bd761a75d9720a5518515/types/cache/7bca2e15de5d46c9b755868b3304b33dd0a915e6

Whitespace-only changes.

.rpt2_cache/32114eb517e2c7da2b2bd761a75d9720a5518515/types/cache/81c118d9cbb7844123765192988ca794c93f3bd8

Whitespace-only changes.

.rpt2_cache/32114eb517e2c7da2b2bd761a75d9720a5518515/types/cache/abe53e7eac4c4e878e2988f04a9fb1d16c8317c0

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"code":"import options from './17options';\r\nvar mem = {};\r\nvar yy = {};\r\nvar alasql = function (sql, params, cb, scope) {\r\n params = params || [];\r\n if (typeof importScripts !== 'function' && mem.webworker) {\r\n var id = mem.lastid++;\r\n mem.buffer[id] = cb;\r\n mem.webworker.postMessage({ id: id, sql: sql, params: params });\r\n return;\r\n }\r\n if (arguments.length === 0) {\r\n // Without arguments - Fluent interface\r\n return new yy.Select({\r\n columns: [new yy.Column({ columnid: '*' })],\r\n from: [new yy.ParamValue({ param: 0 })]\r\n });\r\n }\r\n else if (arguments.length === 1) {\r\n // Access promise notation without using `.promise(...)`\r\n if (sql.constructor === Array) {\r\n return alasql.promise(sql);\r\n }\r\n }\r\n // Avoid setting params if not needed even with callback\r\n if (typeof params === 'function') {\r\n scope = cb;\r\n cb = params;\r\n params = [];\r\n }\r\n if (typeof params !== 'object') {\r\n params = [params];\r\n }\r\n // Standard interface\r\n // alasql('#sql');\r\n /*only-for-browser/*\r\n if (typeof sql === 'string' && sql[0] === '#' && typeof document === 'object') {\r\n sql = document.querySelector(sql).textContent;\r\n } else if (typeof sql === 'object' && sql instanceof HTMLElement) {\r\n sql = sql.textContent;\r\n } else //*/\r\n if (typeof sql === 'function') {\r\n // to run multiline functions\r\n sql = sql.toString();\r\n sql = (/\\/\\*([\\S\\s]+)\\*\\//m.exec(sql) || [\r\n '',\r\n 'Function given as SQL. Plese Provide SQL string or have a /* ... */ syle comment with SQL in the function.',\r\n ])[1];\r\n }\r\n // Run SQL\r\n return alasql.exec(sql, params, cb, scope);\r\n};\r\n/**\r\n Current version of alasql\r\n @constant {string}\r\n*/\r\nalasql.version = 'PACKAGE_VERSION_NUMBER';\r\n/**\r\n Debug flag\r\n @type {boolean}\r\n*/\r\nalasql.debug = undefined; // Initial debug variable\r\noptions(alasql);\r\n/*only-for-browser/*\r\nvar require = function(){return null}; // as alasqlparser.js is generated, we can not \"remove\" referenses to\r\nvar __dirname = '';\r\n//*/\r\n/*only-for-browser/*\r\nif(utils.isCordova || utils.isMeteorServer || utils.isNode ){\r\n console.warn('It looks like you are using the browser version of AlaSQL. Please use the alasql.fs.js file instead.')\r\n}\r\n//*/\r\n// Create default database\r\n//! new Database(\"alasql\");\r\n// Set default database\r\nalasql.use(\"alasql\");\r\nexport default alasql;\r\n"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

.rpt2_cache/434a8d2b8dcad66268900a639eb981974a32b136/types/cache/63e24bad8af287db79503c51dc7bd19794223943

Whitespace-only changes.

.rpt2_cache/434a8d2b8dcad66268900a639eb981974a32b136/types/cache/7bca2e15de5d46c9b755868b3304b33dd0a915e6

Whitespace-only changes.

.rpt2_cache/434a8d2b8dcad66268900a639eb981974a32b136/types/cache/81c118d9cbb7844123765192988ca794c93f3bd8

Whitespace-only changes.

.rpt2_cache/434a8d2b8dcad66268900a639eb981974a32b136/types/cache/abe53e7eac4c4e878e2988f04a9fb1d16c8317c0

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"code":"import options from './17options';\r\nvar mem = {};\r\nvar yy = {};\r\nvar alasql = function (sql, params, cb, scope) {\r\n params = params || [];\r\n if (typeof importScripts !== 'function' && mem.webworker) {\r\n var id = mem.lastid++;\r\n mem.buffer[id] = cb;\r\n mem.webworker.postMessage({ id: id, sql: sql, params: params });\r\n return;\r\n }\r\n if (arguments.length === 0) {\r\n // Without arguments - Fluent interface\r\n return new yy.Select({\r\n columns: [new yy.Column({ columnid: '*' })],\r\n from: [new yy.ParamValue({ param: 0 })]\r\n });\r\n }\r\n else if (arguments.length === 1) {\r\n // Access promise notation without using `.promise(...)`\r\n if (sql.constructor === Array) {\r\n return alasql.promise(sql);\r\n }\r\n }\r\n // Avoid setting params if not needed even with callback\r\n if (typeof params === 'function') {\r\n scope = cb;\r\n cb = params;\r\n params = [];\r\n }\r\n if (typeof params !== 'object') {\r\n params = [params];\r\n }\r\n // Standard interface\r\n // alasql('#sql');\r\n /*only-for-browser/*\r\n if (typeof sql === 'string' && sql[0] === '#' && typeof document === 'object') {\r\n sql = document.querySelector(sql).textContent;\r\n } else if (typeof sql === 'object' && sql instanceof HTMLElement) {\r\n sql = sql.textContent;\r\n } else //*/\r\n if (typeof sql === 'function') {\r\n // to run multiline functions\r\n sql = sql.toString();\r\n sql = (/\\/\\*([\\S\\s]+)\\*\\//m.exec(sql) || [\r\n '',\r\n 'Function given as SQL. Plese Provide SQL string or have a /* ... */ syle comment with SQL in the function.',\r\n ])[1];\r\n }\r\n // Run SQL\r\n return alasql.exec(sql, params, cb, scope);\r\n};\r\n/**\r\n Current version of alasql\r\n @constant {string}\r\n*/\r\nalasql.version = 'PACKAGE_VERSION_NUMBER';\r\n/**\r\n Debug flag\r\n @type {boolean}\r\n*/\r\nalasql.debug = undefined; // Initial debug variable\r\noptions(alasql);\r\n/*only-for-browser/*\r\nvar require = function(){return null}; // as alasqlparser.js is generated, we can not \"remove\" referenses to\r\nvar __dirname = '';\r\n//*/\r\n/*only-for-browser/*\r\nif(utils.isCordova || utils.isMeteorServer || utils.isNode ){\r\n console.warn('It looks like you are using the browser version of AlaSQL. Please use the alasql.fs.js file instead.')\r\n}\r\n//*/\r\n// Create default database\r\n//! new Database(\"alasql\");\r\n// Set default database\r\nalasql.use(\"alasql\");\r\nexport default alasql;\r\n"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

.rpt2_cache/75d397836db146e71c820aa257345f89f9a2473e/types/cache_/63e24bad8af287db79503c51dc7bd19794223943

Whitespace-only changes.

.rpt2_cache/75d397836db146e71c820aa257345f89f9a2473e/types/cache_/7bca2e15de5d46c9b755868b3304b33dd0a915e6

Whitespace-only changes.

.rpt2_cache/75d397836db146e71c820aa257345f89f9a2473e/types/cache_/81c118d9cbb7844123765192988ca794c93f3bd8

Whitespace-only changes.

.rpt2_cache/75d397836db146e71c820aa257345f89f9a2473e/types/cache_/abe53e7eac4c4e878e2988f04a9fb1d16c8317c0

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"code":"import options from './options';\r\nvar yy = {};\r\n//import grammar from './alasqlparser';\r\n//import logic from './alasqllogic';\r\n//const alasql: any = logic(grammar);\r\nvar alasql = {};\r\n/**\r\n Current version of alasql\r\n @constant {string}\r\n*/\r\nalasql.version = 'PACKAGE_VERSION_NUMBER';\r\n/**\r\n Debug flag\r\n @type {boolean}\r\n*/\r\nalasql.debug = undefined; // Initial debug variable\r\noptions(alasql);\r\n/*only-for-browser/*\r\nvar require = function(){return null}; // as alasqlparser.js is generated, we can not \"remove\" referenses to\r\nvar __dirname = '';\r\n//*/\r\n/*only-for-browser/*\r\nif(utils.isCordova || utils.isMeteorServer || utils.isNode ){\r\n console.warn('It looks like you are using the browser version of AlaSQL. Please use the alasql.fs.js file instead.')\r\n}\r\n//*/\r\n// Create default database\r\n//! new Database(\"alasql\");\r\n// Set default database\r\nalasql.use(\"alasql\");\r\nexport default alasql;\r\n"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

.rpt2_cache/c08ce577230ad4cec9c2abec4c76be017382fe60/types/cache/7bca2e15de5d46c9b755868b3304b33dd0a915e6

Whitespace-only changes.

.rpt2_cache/c08ce577230ad4cec9c2abec4c76be017382fe60/types/cache/81c118d9cbb7844123765192988ca794c93f3bd8

Whitespace-only changes.

.rpt2_cache/c08ce577230ad4cec9c2abec4c76be017382fe60/types/cache/abe53e7eac4c4e878e2988f04a9fb1d16c8317c0

Whitespace-only changes.

.rpt2_cache/c08ce577230ad4cec9c2abec4c76be017382fe60/types/cache/fc1b290cd5f087bcdb7a1370f55094d61956c724

Whitespace-only changes.

dist/alasql.es5.js

Lines changed: 1 addition & 3619 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)