@e-mc/core 0.9.0 → 0.9.2

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.
Files changed (4) hide show
  1. package/LICENSE +10 -10
  2. package/README.md +10 -26
  3. package/index.d.ts +12 -12
  4. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,11 +1,11 @@
1
- Copyright 2024 An Pham
2
-
3
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
-
5
- 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
-
7
- 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
-
9
- 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
-
1
+ Copyright 2024 An Pham
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
+
5
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
+
7
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
+
11
11
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @e-mc/core
2
2
 
3
- * NodeJS 14/16
3
+ * NodeJS 16
4
4
  * ES2020
5
5
 
6
6
  ## General Usage
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.9.0/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.9.2/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { DataSource, LogStatus } from "./squared";
@@ -119,7 +119,7 @@ interface ClientDbConstructor extends ClientConstructor<IHost, ClientModule> {
119
119
  readonly TRANSACTION_TERMINATE: number;
120
120
  readonly TRANSACTION_ABORT: number;
121
121
  readonly TRANSACTION_FAIL: number;
122
- loadSettings(settings: Pick<Settings, "process" | "memory">, password?: string) : boolean;
122
+ loadSettings(settings: Pick<Settings, "process" | "memory">, password?: string): boolean;
123
123
  getTimeout(value: number | string | TimeoutAction | undefined): number;
124
124
  convertTime(value: number | string): number;
125
125
  findResult(source: string, credential: unknown, queryString: string, timeout: number, sessionKey?: string | boolean, renewCache?: boolean): QueryResult | undefined;
@@ -227,31 +227,15 @@ Host.loadSettings({ // Global
227
227
 
228
228
  NOTE: **@e-mc/core** is mostly a collection of abstract base classes which cannot be instantiated. **Host** is more commonly called through [@e-mc/file-manager](https://www.npmjs.com/package/@e-mc/file-manager).
229
229
 
230
- ## NodeJS 14 LTS
231
-
232
- Any optional fail safe dependencies were removed as of `E-mc 0.9`. The code itself will still be *ES2020* and will continue to work equivalently when self-installing these dependencies:
233
-
234
- ### Under 15.4 + 16.0
235
-
236
- ```sh
237
- npm i abort-controller event-target-shim
238
- ```
239
-
240
- ### Under 14.17 + 15.6
241
-
242
- ```sh
243
- npm i uuid
244
- ```
245
-
246
230
  ## References
247
231
 
248
- - https://www.unpkg.com/@e-mc/types@0.9.0/lib/squared.d.ts
249
- - https://www.unpkg.com/@e-mc/types@0.9.0/lib/core.d.ts
250
- - https://www.unpkg.com/@e-mc/types@0.9.0/lib/db.d.ts
251
- - https://www.unpkg.com/@e-mc/types@0.9.0/lib/dom.d.ts
252
- - https://www.unpkg.com/@e-mc/types@0.9.0/lib/logger.d.ts
253
- - https://www.unpkg.com/@e-mc/types@0.9.0/lib/node.d.ts
254
- - https://www.unpkg.com/@e-mc/types@0.9.0/lib/settings.d.ts
232
+ - https://www.unpkg.com/@e-mc/types@0.9.2/lib/squared.d.ts
233
+ - https://www.unpkg.com/@e-mc/types@0.9.2/lib/core.d.ts
234
+ - https://www.unpkg.com/@e-mc/types@0.9.2/lib/db.d.ts
235
+ - https://www.unpkg.com/@e-mc/types@0.9.2/lib/dom.d.ts
236
+ - https://www.unpkg.com/@e-mc/types@0.9.2/lib/logger.d.ts
237
+ - https://www.unpkg.com/@e-mc/types@0.9.2/lib/node.d.ts
238
+ - https://www.unpkg.com/@e-mc/types@0.9.2/lib/settings.d.ts
255
239
 
256
240
  ## LICENSE
257
241
 
package/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import type { HostConstructor, ModuleConstructor } from '../types/lib';
2
- import type { AbortComponentConstructor, ClientConstructor, ClientDbConstructor, PermissionConstructor } from '../types/lib/core';
3
-
4
- declare namespace core {
5
- const Module: ModuleConstructor;
6
- const Host: HostConstructor;
7
- const Client: ClientConstructor;
8
- const ClientDb: ClientDbConstructor;
9
- const AbortComponent: AbortComponentConstructor;
10
- const Permission: PermissionConstructor;
11
- }
12
-
1
+ import type { HostConstructor, ModuleConstructor } from '../types/lib';
2
+ import type { AbortComponentConstructor, ClientConstructor, ClientDbConstructor, PermissionConstructor } from '../types/lib/core';
3
+
4
+ declare namespace core {
5
+ const Module: ModuleConstructor;
6
+ const Host: HostConstructor;
7
+ const Client: ClientConstructor;
8
+ const ClientDb: ClientDbConstructor;
9
+ const AbortComponent: AbortComponentConstructor;
10
+ const Permission: PermissionConstructor;
11
+ }
12
+
13
13
  export = core;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/core",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Core modules for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "license": "BSD 3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/module": "0.9.0",
24
- "@e-mc/types": "0.9.0",
23
+ "@e-mc/module": "0.9.2",
24
+ "@e-mc/types": "0.9.2",
25
25
  "picomatch": "^4.0.2"
26
26
  }
27
27
  }