diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..5f7726e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,22 @@ +kind: pipeline +name: default + +steps: +- name: npm install + image: node:12 + commands: + - npm install + +- name: npm run build + image: node:12 + commands: + - npm run build + +- name: npm publish + image: plugins/npm + settings: + username: frontwork + password: + from_secret: npm_password + email: frontwork.me@gmail.com + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5ed8763..35162d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules +js src/**/*.js src/**/*.d.ts @@ -7,6 +8,4 @@ test/**/*.js test/**/*.d.ts *.d.ts -*.js - -lib \ No newline at end of file +*.js \ No newline at end of file diff --git a/src/Frontend.ts b/src/Frontend.ts index 86b1bca..9a1d0ff 100644 --- a/src/Frontend.ts +++ b/src/Frontend.ts @@ -14,6 +14,7 @@ export class RPCSocket implements I.Socket{ private socket: I.Socket constructor(public port:number, private server: string, private tls: boolean = false){ + Object.defineProperty(this, 'socket', {value: undefined, writable: true}) } diff --git a/test/index.html b/test/index.html new file mode 100644 index 0000000..4159903 --- /dev/null +++ b/test/index.html @@ -0,0 +1 @@ +