ztechno_core 0.0.39 → 0.0.42

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.
@@ -1,4 +1,4 @@
1
- import { HashStruct } from '.';
1
+ import { HashStruct } from './typings/crypto_service';
2
2
  export declare class ZCryptoService {
3
3
  static encrypt(text: string): HashStruct;
4
4
  static decrypt(data: HashStruct): string;
package/lib/index.d.ts CHANGED
@@ -4,5 +4,14 @@ import { ZMailService } from './mail_service';
4
4
  import { ZSqlService } from './sql_service';
5
5
  import { ZTranslateService } from './translate_service';
6
6
  import { ZUserService } from './user_service';
7
- export * from 'ztechno_core';
7
+ export { HashStruct } from './typings/crypto_service';
8
+ export {
9
+ MailOptions,
10
+ MailOptionsBase,
11
+ MailOptionsHtml,
12
+ MailOptionsText,
13
+ MailServiceOptions,
14
+ } from './typings/mail_service';
15
+ export { TranslateData, ZDom, ZNode, ZNodeText, dbTranslationRow } from './typings/translate_service';
16
+ export { ZRequiredUserColumns, ZUser, ZUserCredentials, ZUserSession } from './typings/user_service';
8
17
  export { ZCryptoService, ZMailService, ZSqlService, ZTranslateService, ZUserService, ZEngineBase };
package/lib/index.js CHANGED
@@ -1,30 +1,4 @@
1
1
  'use strict';
2
- var __createBinding =
3
- (this && this.__createBinding) ||
4
- (Object.create
5
- ? function (o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = {
10
- enumerable: true,
11
- get: function () {
12
- return m[k];
13
- },
14
- };
15
- }
16
- Object.defineProperty(o, k2, desc);
17
- }
18
- : function (o, m, k, k2) {
19
- if (k2 === undefined) k2 = k;
20
- o[k2] = m[k];
21
- });
22
- var __exportStar =
23
- (this && this.__exportStar) ||
24
- function (m, exports) {
25
- for (var p in m)
26
- if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
- };
28
2
  Object.defineProperty(exports, '__esModule', { value: true });
29
3
  exports.ZEngineBase =
30
4
  exports.ZUserService =
@@ -75,4 +49,3 @@ Object.defineProperty(exports, 'ZUserService', {
75
49
  return user_service_1.ZUserService;
76
50
  },
77
51
  });
78
- __exportStar(require('ztechno_core'), exports);
@@ -1,4 +1,4 @@
1
- import { MailOptionsHtml, MailOptionsText, MailServiceOptions } from '.';
1
+ import { MailOptionsHtml, MailOptionsText, MailServiceOptions } from './typings/mail_service';
2
2
  export declare class ZMailService {
3
3
  private opt;
4
4
  constructor(opt: MailServiceOptions);
@@ -1,26 +1,5 @@
1
1
  import { ZSqlService } from './sql_service';
2
- type ZUser = {
3
- id: number;
4
- email: string;
5
- session: string;
6
- role: string | null;
7
- admin: 0 | 1;
8
- updated_at: any;
9
- created_at: any;
10
- };
11
- type ZRequiredUserColumns = {
12
- email: string;
13
- role: string | null;
14
- pass: string;
15
- admin: 0 | 1;
16
- };
17
- type ZUserCredentials = {
18
- email: string;
19
- pass: string;
20
- };
21
- type ZUserSession = {
22
- session: string;
23
- };
2
+ import { ZRequiredUserColumns, ZUser, ZUserSession, ZUserCredentials } from './typings/user_service';
24
3
  export declare class ZUserService {
25
4
  private tableName;
26
5
  private sqlService;
@@ -42,4 +21,3 @@ export declare class ZUserService {
42
21
  private genSession;
43
22
  private hashPass;
44
23
  }
45
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztechno_core",
3
- "version": "0.0.39",
3
+ "version": "0.0.42",
4
4
  "description": "Core files for ztechno framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",