quidproquo-web 0.0.231 → 0.0.233

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
- # quidproquo
2
-
3
- JS Library for building web servers using pure functions and generators.
4
-
5
- ## tsconfig
6
-
7
- core for quidproquo library packages ~ Should probably not be used by itself
8
-
9
- use `quidproquo`
10
-
11
- ### Note
12
-
13
- Currently under development ~ Not for production
1
+ # quidproquo
2
+
3
+ JS Library for building web servers using pure functions and generators.
4
+
5
+ ## tsconfig
6
+
7
+ core for quidproquo library packages ~ Should probably not be used by itself
8
+
9
+ use `quidproquo`
10
+
11
+ ### Note
12
+
13
+ Currently under development ~ Not for production
@@ -1,4 +1,4 @@
1
+ export * from './auth';
2
+ export * from './request';
1
3
  export * from './services';
2
4
  export * from './tools';
3
- export * from './request';
4
- export * from './auth';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./auth"), exports);
18
+ __exportStar(require("./request"), exports);
17
19
  __exportStar(require("./services"), exports);
18
20
  __exportStar(require("./tools"), exports);
19
- __exportStar(require("./request"), exports);
20
- __exportStar(require("./auth"), exports);
@@ -1,2 +1,2 @@
1
- import { NetworkRequestActionPayload, HTTPNetworkResponse } from 'quidproquo-core';
1
+ import { HTTPNetworkResponse, NetworkRequestActionPayload } from 'quidproquo-core';
2
2
  export declare const preformNetworkRequest: <R>(payload: NetworkRequestActionPayload<any>) => Promise<HTTPNetworkResponse<R>>;
@@ -13,8 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.preformNetworkRequest = void 0;
16
- const mime_types_1 = require("mime-types");
17
16
  const axios_1 = __importDefault(require("axios"));
17
+ const mime_types_1 = require("mime-types");
18
18
  const getAxiosResponseType = (responseType) => {
19
19
  if (responseType === 'binary') {
20
20
  return 'arraybuffer';
@@ -71,7 +71,7 @@ class WebsocketService {
71
71
  }
72
72
  unsubscribeAll() {
73
73
  for (const subscriptionType in this.subscriptions) {
74
- if (this.subscriptions.hasOwnProperty(subscriptionType)) {
74
+ if (Object.prototype.hasOwnProperty.call(this.subscriptions, subscriptionType)) {
75
75
  this.subscriptions[subscriptionType].clear();
76
76
  }
77
77
  }
@@ -96,7 +96,7 @@ class WebsocketService {
96
96
  removeAllEventListeners() {
97
97
  if (this.socket) {
98
98
  for (const event in this.eventListeners) {
99
- if (this.eventListeners.hasOwnProperty(event)) {
99
+ if (Object.prototype.hasOwnProperty.call(this.eventListeners, event)) {
100
100
  for (const listener of this.eventListeners[event]) {
101
101
  this.socket.removeEventListener(event, listener);
102
102
  }
@@ -1 +1 @@
1
- export * from "./WebsocketService";
1
+ export * from './WebsocketService';
@@ -1,4 +1,4 @@
1
+ export * from './auth';
2
+ export * from './request';
1
3
  export * from './services';
2
4
  export * from './tools';
3
- export * from './request';
4
- export * from './auth';
package/lib/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
+ export * from './auth';
2
+ export * from './request';
1
3
  export * from './services';
2
4
  export * from './tools';
3
- export * from './request';
4
- export * from './auth';
@@ -1,2 +1,2 @@
1
- import { NetworkRequestActionPayload, HTTPNetworkResponse } from 'quidproquo-core';
1
+ import { HTTPNetworkResponse, NetworkRequestActionPayload } from 'quidproquo-core';
2
2
  export declare const preformNetworkRequest: <R>(payload: NetworkRequestActionPayload<any>) => Promise<HTTPNetworkResponse<R>>;
@@ -1,5 +1,5 @@
1
- import { extension } from 'mime-types';
2
1
  import axios from 'axios';
2
+ import { extension } from 'mime-types';
3
3
  const getAxiosResponseType = (responseType) => {
4
4
  if (responseType === 'binary') {
5
5
  return 'arraybuffer';
@@ -66,7 +66,7 @@ export class WebsocketService {
66
66
  }
67
67
  unsubscribeAll() {
68
68
  for (const subscriptionType in this.subscriptions) {
69
- if (this.subscriptions.hasOwnProperty(subscriptionType)) {
69
+ if (Object.prototype.hasOwnProperty.call(this.subscriptions, subscriptionType)) {
70
70
  this.subscriptions[subscriptionType].clear();
71
71
  }
72
72
  }
@@ -91,7 +91,7 @@ export class WebsocketService {
91
91
  removeAllEventListeners() {
92
92
  if (this.socket) {
93
93
  for (const event in this.eventListeners) {
94
- if (this.eventListeners.hasOwnProperty(event)) {
94
+ if (Object.prototype.hasOwnProperty.call(this.eventListeners, event)) {
95
95
  for (const listener of this.eventListeners[event]) {
96
96
  this.socket.removeEventListener(event, listener);
97
97
  }
@@ -1 +1 @@
1
- export * from "./WebsocketService";
1
+ export * from './WebsocketService';
@@ -1 +1 @@
1
- export * from "./WebsocketService";
1
+ export * from './WebsocketService';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-web",
3
- "version": "0.0.231",
3
+ "version": "0.0.233",
4
4
  "description": "",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -15,7 +15,10 @@
15
15
  "build": "npm run clean && npm run build:esm && npm run build:cjs",
16
16
  "watch": "tsc -p tsconfig.esm.json -w",
17
17
  "build:cjs": "tsc -p tsconfig.commonjs.json",
18
- "build:esm": "tsc -p tsconfig.esm.json"
18
+ "build:esm": "tsc -p tsconfig.esm.json",
19
+ "lint": "npx eslint .",
20
+ "lint:fix": "npx eslint . --fix",
21
+ "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,scss,md}\""
19
22
  },
20
23
  "repository": {
21
24
  "type": "git",
@@ -29,9 +32,9 @@
29
32
  },
30
33
  "homepage": "https://github.com/joe-coady/quidproquo#readme",
31
34
  "devDependencies": {
32
- "quidproquo-core": "0.0.231",
33
- "quidproquo-tsconfig": "0.0.231",
34
- "quidproquo-webserver": "0.0.231",
35
+ "quidproquo-core": "0.0.233",
36
+ "quidproquo-tsconfig": "0.0.233",
37
+ "quidproquo-webserver": "0.0.233",
35
38
  "typescript": "^4.9.3"
36
39
  }
37
40
  }