Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nebula nodejs SDK implementation #6

Merged
merged 38 commits into from
Dec 22, 2021
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
051a489
empty origin repository
wujjpp Dec 1, 2021
2b0a3f6
initial
wujjpp Dec 2, 2021
e37e5f6
update package name
wujjpp Dec 2, 2021
9c4b313
add npm ignore file
wujjpp Dec 2, 2021
acd92b3
enhance
wujjpp Dec 2, 2021
a7ca049
enahnce readme
wujjpp Dec 2, 2021
b7586b5
remove internal dependences
wujjpp Dec 2, 2021
66f1398
update readme.md
wujjpp Dec 2, 2021
adf24ed
update readme
wujjpp Dec 2, 2021
d280fee
update readme
wujjpp Dec 2, 2021
fb87924
update readme
wujjpp Dec 2, 2021
1cc1053
update readme
wujjpp Dec 2, 2021
1651597
update readme
wujjpp Dec 2, 2021
e1fc3f1
update readme
wujjpp Dec 2, 2021
5e51e5f
update readme
wujjpp Dec 2, 2021
45e3367
update readme
wujjpp Dec 2, 2021
7501e95
update readme
wujjpp Dec 2, 2021
4c48955
.
wujjpp Dec 2, 2021
d435bff
remove github workflow
wujjpp Dec 2, 2021
92cd6b5
Create test.yml
wujjpp Dec 2, 2021
8e61938
Update test.yml
wujjpp Dec 2, 2021
0ba56d9
Update test.yml
wujjpp Dec 2, 2021
71b7da4
.
wujjpp Dec 2, 2021
8e315ed
Merge branch 'master' of https://github.com/wujjpp/nebula-node
wujjpp Dec 2, 2021
c37cebb
.
wujjpp Dec 2, 2021
c94b822
remove github workflow
wujjpp Dec 2, 2021
3f38a8c
update build.js
wujjpp Dec 2, 2021
b779141
add keywords in package.json
wujjpp Dec 2, 2021
f17fc8d
update readme
wujjpp Dec 2, 2021
8f833a3
update readme
wujjpp Dec 2, 2021
85479e2
convert stmt from string to buffer
wujjpp Dec 3, 2021
bd946c7
update readme, for fix colon in config option example
wujjpp Dec 6, 2021
81d2761
update readme
wujjpp Dec 6, 2021
40ab88c
add CommonJS import
wujjpp Dec 6, 2021
5d71bfd
remove useless package
wujjpp Dec 6, 2021
a468a7b
fix utf8 length issue
wujjpp Dec 8, 2021
9c46e8a
rename database to space
wujjpp Dec 21, 2021
07f6a50
update readme and test case
wujjpp Dec 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist/**/*
.tmp/**/*
node_modules
specs/gen-nodejs/**/*
src/nebula/interface/**/*
src/thrift/*
194 changes: 194 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
es6: true,
node: true
},
extends: 'semistandard',
parserOptions: {
sourceType: 'module'
},
rules: {
indent: ['error', 2, { SwitchCase: 1 }],
'linebreak-style': ['error', 'unix'],
quotes: [1, 'single'],
semi: [1, 'never'],
'no-console': 1,
'space-before-function-paren': 0,
'no-multiple-empty-lines': ['off']
},
globals: {
describe: true,
it: true,
after: true,
before: true,
afterEach: true,
beforeEach: true,
$: true,
Viz: true,
'Viz.render': true,
'Viz.Module': true,
nebula: true,
Thrift: true
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
extends: [
'plugin:@typescript-eslint/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module'
},
plugins: [
'eslint-plugin-jsdoc',
'eslint-plugin-prefer-arrow',
'@typescript-eslint'
],
rules: {
'@typescript-eslint/adjacent-overload-signatures': 'warn',
'@typescript-eslint/array-type': [
'warn',
{
default: 'array'
}
],
'@typescript-eslint/ban-types': [
'warn',
{
types: {
Object: {
message: 'Avoid using the `Object` type. Did you mean `object`?'
},
Function: {
message: 'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.'
},
Boolean: {
message: 'Avoid using the `Boolean` type. Did you mean `boolean`?'
},
Number: {
message: 'Avoid using the `Number` type. Did you mean `number`?'
},
String: {
message: 'Avoid using the `String` type. Did you mean `string`?'
},
Symbol: {
message: 'Avoid using the `Symbol` type. Did you mean `symbol`?'
}
}
}
],
'@typescript-eslint/consistent-type-assertions': 'warn',
'@typescript-eslint/dot-notation': 'warn',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-misused-new': 'warn',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-unused-expressions': 'warn',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/prefer-for-of': 'warn',
'@typescript-eslint/prefer-function-type': 'warn',
'@typescript-eslint/prefer-namespace-keyword': 'warn',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/quotes': [
'warn',
'single'
],
'@typescript-eslint/triple-slash-reference': [
'warn',
{
path: 'always',
types: 'prefer-import',
lib: 'always'
}
],
'@typescript-eslint/unified-signatures': 'warn',
'@typescript-eslint/no-shadow': [
'warn',
{
hoist: 'all'
}
],
complexity: 'off',
'constructor-super': 'warn',
eqeqeq: [
'warn',
'smart'
],
'guard-for-in': 'warn',
'id-blacklist': [
'warn',
'any',
'Number',
'number',
'String',
'string',
'Boolean',
'boolean',
'Undefined',
'undefined'
],
'id-match': 'warn',
'jsdoc/check-alignment': 'warn',
'jsdoc/check-indentation': 'warn',
'jsdoc/newline-after-description': 'warn',
'max-classes-per-file': [
'warn',
1
],
'max-len': [
'warn',
{
code: 240
}
],
'new-parens': 'warn',
'no-bitwise': 'warn',
'no-caller': 'warn',
'no-cond-assign': 'warn',
'no-console': 'warn',
'no-debugger': 'warn',
'no-empty': 'off',
'no-eval': 'warn',
'no-fallthrough': 'off',
'no-invalid-this': 'off',
'no-new-wrappers': 'warn',
'no-shadow': 'off',
'no-throw-literal': 'warn',
'no-trailing-spaces': 'warn',
'no-undef-init': 'warn',
'no-underscore-dangle': 'off',
'no-unsafe-finally': 'warn',
'no-unused-labels': 'warn',
'no-var': 'warn',
'object-shorthand': 'warn',
'one-var': [
'warn',
'never'
],
'prefer-arrow/prefer-arrow-functions': 'warn',
'prefer-const': 'warn',
radix: 'warn',
'spaced-comment': [
'warn',
'always',
{
markers: [
'/'
]
}
],
'use-isnan': 'warn',
'valid-typeof': 'off'
}
}
]
}
4 changes: 4 additions & 0 deletions .esmrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cache": false,
"sourceMap": true
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js text eol=lf
45 changes: 0 additions & 45 deletions .github/workflows/test.yaml

This file was deleted.

125 changes: 7 additions & 118 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,119 +1,8 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
node_modules
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# ide
*.idea
.tmp
package-lock.json
.DS_Store
.nyc_output
coverage
build
6 changes: 6 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"MD013": false,
"MD014": false,
"MD029": false,
"MD033": false
}
Loading