core-3nweb-client-lib 0.24.3 → 0.25.1

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,10 +1,4 @@
1
1
  /// <reference path="api-defs/web3n.d.ts" />
2
- export * from "./core-ipc/common-caps";
3
- export * from "./core-ipc/startup-caps";
4
- export * from "./ipc-via-protobuf/connector";
5
- export { FileMsg, makeFileCaller, exposeFileService } from "./ipc-via-protobuf/file";
6
- export { FSMsg, makeFSCaller, exposeFSService } from "./ipc-via-protobuf/fs";
7
- export { makeLogCaller, exposeLogger } from "./ipc-via-protobuf/log-cap";
8
2
  export * from "./core";
9
3
  export { makeServiceLocator, ServiceLocatorMaker } from "./lib-client/service-locator";
10
4
  export { makeNetClient } from "./lib-client/request-utils";
@@ -12,34 +6,3 @@ export { sysFolders, initSysFolders, FactoryOfFSs, PerAppStorage, sysFilesOnDevi
12
6
  export { DeviceFS } from './lib-client/local-files/device-fs';
13
7
  export { appDirs } from './core/app-files';
14
8
  export { makeLogger } from './lib-client/logging/log-to-file';
15
- import { StorageOwner as StorageOwnerClient } from './lib-client/3nstorage/service';
16
- import { MailRecipient as MailRecipientClient } from './lib-client/asmail/recipient';
17
- import { MailSender as MailSenderClient } from './lib-client/asmail/sender';
18
- import { MailerIdProvisioner as MailerIdProvisionerClient } from './lib-client/mailer-id/provisioner';
19
- import * as signupClientFuncs from './lib-client/3nweb-signup';
20
- import * as signupApi from './lib-common/user-admin-api/signup';
21
- import { user as midUser } from './lib-common/mid-sigs-NaCl-Ed';
22
- import * as srvLocFuncs from './lib-client/service-locator';
23
- import * as cryptor from './lib-client/cryptor/cryptor';
24
- export declare namespace raw3NWebClients {
25
- type StorageOwner = StorageOwnerClient;
26
- const StorageOwner: typeof StorageOwnerClient;
27
- type MailRecipient = MailRecipientClient;
28
- const MailRecipient: typeof MailRecipientClient;
29
- type MailSender = MailSenderClient;
30
- const MailSender: typeof MailSenderClient;
31
- const signupFuncs: typeof signupClientFuncs;
32
- type MailerIdProvisioner = MailerIdProvisionerClient;
33
- const MailerIdProvisioner: typeof MailerIdProvisionerClient;
34
- type UserMidParams = signupApi.UserMidParams;
35
- type UserStorageParams = signupApi.UserStorageParams;
36
- type MailerIdSigner = midUser.MailerIdSigner;
37
- const serviceLocationFuncs: typeof srvLocFuncs;
38
- function getLibVersion(): string;
39
- }
40
- export declare namespace cryptors {
41
- const makeInProcessCryptor: typeof cryptor.makeInProcessCryptor;
42
- const makeInProcessWasmCryptor: typeof cryptor.makeInProcessWasmCryptor;
43
- const makeInWorkerCryptor: cryptor.makeCryptor;
44
- const makeInWorkerWasmCryptor: cryptor.makeCryptor;
45
- }
@@ -26,19 +26,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.cryptors = exports.raw3NWebClients = void 0;
30
- __exportStar(require("./core-ipc/common-caps"), exports);
31
- __exportStar(require("./core-ipc/startup-caps"), exports);
32
- __exportStar(require("./ipc-via-protobuf/connector"), exports);
33
- var file_1 = require("./ipc-via-protobuf/file");
34
- Object.defineProperty(exports, "makeFileCaller", { enumerable: true, get: function () { return file_1.makeFileCaller; } });
35
- Object.defineProperty(exports, "exposeFileService", { enumerable: true, get: function () { return file_1.exposeFileService; } });
36
- var fs_1 = require("./ipc-via-protobuf/fs");
37
- Object.defineProperty(exports, "makeFSCaller", { enumerable: true, get: function () { return fs_1.makeFSCaller; } });
38
- Object.defineProperty(exports, "exposeFSService", { enumerable: true, get: function () { return fs_1.exposeFSService; } });
39
- var log_cap_1 = require("./ipc-via-protobuf/log-cap");
40
- Object.defineProperty(exports, "makeLogCaller", { enumerable: true, get: function () { return log_cap_1.makeLogCaller; } });
41
- Object.defineProperty(exports, "exposeLogger", { enumerable: true, get: function () { return log_cap_1.exposeLogger; } });
42
29
  __exportStar(require("./core"), exports);
43
30
  var service_locator_1 = require("./lib-client/service-locator");
44
31
  Object.defineProperty(exports, "makeServiceLocator", { enumerable: true, get: function () { return service_locator_1.makeServiceLocator; } });
@@ -57,33 +44,4 @@ var app_files_1 = require("./core/app-files");
57
44
  Object.defineProperty(exports, "appDirs", { enumerable: true, get: function () { return app_files_1.appDirs; } });
58
45
  var log_to_file_1 = require("./lib-client/logging/log-to-file");
59
46
  Object.defineProperty(exports, "makeLogger", { enumerable: true, get: function () { return log_to_file_1.makeLogger; } });
60
- const service_1 = require("./lib-client/3nstorage/service");
61
- const recipient_1 = require("./lib-client/asmail/recipient");
62
- const sender_1 = require("./lib-client/asmail/sender");
63
- const provisioner_1 = require("./lib-client/mailer-id/provisioner");
64
- const signupClientFuncs = require("./lib-client/3nweb-signup");
65
- const srvLocFuncs = require("./lib-client/service-locator");
66
- const cryptor = require("./lib-client/cryptor/cryptor");
67
- var raw3NWebClients;
68
- (function (raw3NWebClients) {
69
- raw3NWebClients.StorageOwner = service_1.StorageOwner;
70
- raw3NWebClients.MailRecipient = recipient_1.MailRecipient;
71
- raw3NWebClients.MailSender = sender_1.MailSender;
72
- raw3NWebClients.signupFuncs = signupClientFuncs;
73
- raw3NWebClients.MailerIdProvisioner = provisioner_1.MailerIdProvisioner;
74
- raw3NWebClients.serviceLocationFuncs = srvLocFuncs;
75
- function getLibVersion() {
76
- return require(`../package.json`).version;
77
- }
78
- raw3NWebClients.getLibVersion = getLibVersion;
79
- })(raw3NWebClients = exports.raw3NWebClients || (exports.raw3NWebClients = {}));
80
- Object.freeze(raw3NWebClients);
81
- var cryptors;
82
- (function (cryptors) {
83
- cryptors.makeInProcessCryptor = cryptor.makeInProcessCryptor;
84
- cryptors.makeInProcessWasmCryptor = cryptor.makeInProcessWasmCryptor;
85
- cryptors.makeInWorkerCryptor = cryptor.makeInWorkerCryptor;
86
- cryptors.makeInWorkerWasmCryptor = cryptor.makeInWorkerWasmCryptor;
87
- })(cryptors = exports.cryptors || (exports.cryptors = {}));
88
- Object.freeze(cryptors);
89
47
  Object.freeze(exports);
@@ -0,0 +1,22 @@
1
+ import { StorageOwner as StorageOwnerClient } from './lib-client/3nstorage/service';
2
+ import { MailRecipient as MailRecipientClient } from './lib-client/asmail/recipient';
3
+ import { MailSender as MailSenderClient } from './lib-client/asmail/sender';
4
+ import { MailerIdProvisioner as MailerIdProvisionerClient } from './lib-client/mailer-id/provisioner';
5
+ import * as signupClientFuncs from './lib-client/3nweb-signup';
6
+ import * as signupApi from './lib-common/user-admin-api/signup';
7
+ import { user as midUser } from './lib-common/mid-sigs-NaCl-Ed';
8
+ import * as srvLocFuncs from './lib-client/service-locator';
9
+ export declare type StorageOwner = StorageOwnerClient;
10
+ export declare const StorageOwner: typeof StorageOwnerClient;
11
+ export declare type MailRecipient = MailRecipientClient;
12
+ export declare const MailRecipient: typeof MailRecipientClient;
13
+ export declare type MailSender = MailSenderClient;
14
+ export declare const MailSender: typeof MailSenderClient;
15
+ export declare const signupFuncs: typeof signupClientFuncs;
16
+ export declare type MailerIdProvisioner = MailerIdProvisionerClient;
17
+ export declare const MailerIdProvisioner: typeof MailerIdProvisionerClient;
18
+ export declare type UserMidParams = signupApi.UserMidParams;
19
+ export declare type UserStorageParams = signupApi.UserStorageParams;
20
+ export declare type MailerIdSigner = midUser.MailerIdSigner;
21
+ export declare const serviceLocationFuncs: typeof srvLocFuncs;
22
+ export declare function getLibVersion(): string;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /*
3
+ Copyright (C) 2020 - 2021 3NSoft Inc.
4
+
5
+ This program is free software: you can redistribute it and/or modify it under
6
+ the terms of the GNU General Public License as published by the Free Software
7
+ Foundation, either version 3 of the License, or (at your option) any later
8
+ version.
9
+
10
+ This program is distributed in the hope that it will be useful, but
11
+ WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
+ See the GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License along with
16
+ this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.getLibVersion = exports.serviceLocationFuncs = exports.MailerIdProvisioner = exports.signupFuncs = exports.MailSender = exports.MailRecipient = exports.StorageOwner = void 0;
20
+ const service_1 = require("./lib-client/3nstorage/service");
21
+ const recipient_1 = require("./lib-client/asmail/recipient");
22
+ const sender_1 = require("./lib-client/asmail/sender");
23
+ const provisioner_1 = require("./lib-client/mailer-id/provisioner");
24
+ const signupClientFuncs = require("./lib-client/3nweb-signup");
25
+ const srvLocFuncs = require("./lib-client/service-locator");
26
+ exports.StorageOwner = service_1.StorageOwner;
27
+ exports.MailRecipient = recipient_1.MailRecipient;
28
+ exports.MailSender = sender_1.MailSender;
29
+ exports.signupFuncs = signupClientFuncs;
30
+ exports.MailerIdProvisioner = provisioner_1.MailerIdProvisioner;
31
+ exports.serviceLocationFuncs = srvLocFuncs;
32
+ function getLibVersion() {
33
+ return require(`../package.json`).version;
34
+ }
35
+ exports.getLibVersion = getLibVersion;
36
+ Object.freeze(exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.24.3",
3
+ "version": "0.25.1",
4
4
  "description": "3NWeb client core library, embeddable into different environments",
5
5
  "main": "build/lib-index.js",
6
6
  "types": "build/lib-index.d.ts",