Skip to content

Commit

Permalink
Expand Testing - generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-cronin committed Jul 22, 2020
1 parent f5fd25e commit d726983
Show file tree
Hide file tree
Showing 24 changed files with 10,283 additions and 274 deletions.
727 changes: 726 additions & 1 deletion dist/cli/cli.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/browser-client.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/// <reference types="node" />
import { PassThrough } from 'readable-stream';
import { Duplex } from 'readable-stream';
declare class PolykeyClient {
private getStream;
constructor(getStream: () => PassThrough);
constructor(getStream: () => Duplex);
sendRequestToAgent(request: Uint8Array): Promise<Uint8Array[]>;
private handleAgentCommunication;
registerNode(path: string, passphrase: string): Promise<boolean>;
Expand All @@ -15,7 +15,7 @@ declare class PolykeyClient {
newVault(nodePath: string, vaultName: string): Promise<boolean>;
destroyVault(nodePath: string, vaultName: string): Promise<boolean>;
listSecrets(nodePath: string, vaultName: string): Promise<string[]>;
createSecret(nodePath: string, vaultName: string, secretName: string, secretPath: string): Promise<boolean>;
createSecret(nodePath: string, vaultName: string, secretName: string, secret: string | Buffer): Promise<boolean>;
destroySecret(nodePath: string, vaultName: string, secretName: string): Promise<boolean>;
getSecret(nodePath: string, vaultName: string, secretName: string): Promise<Buffer>;
getAgentStatus(): Promise<string>;
Expand Down
5,105 changes: 5,102 additions & 3 deletions dist/lib/browser-client.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lib/browser-client.js.map

Large diffs are not rendered by default.

110 changes: 109 additions & 1 deletion dist/lib/internal/daemon-script.js
Original file line number Diff line number Diff line change
@@ -1 +1,109 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t){e.exports=require("../polykey.js")},function(e,t,r){"use strict";r.r(t);var n=r(0);process.title="polykey-agent",new n.PolykeyAgent}]);
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {

module.exports = require("../polykey.js");

/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Polykey__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
/* harmony import */ var _Polykey__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Polykey__WEBPACK_IMPORTED_MODULE_0__);


process.title = 'polykey-agent';

new _Polykey__WEBPACK_IMPORTED_MODULE_0__["PolykeyAgent"]();


/***/ })
/******/ ]);
17 changes: 7 additions & 10 deletions dist/lib/polykey.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare module 'polykey/src/lib/Polykey' {
}
declare module 'polykey/src/lib/agent/PolykeyAgent' {
import PolykeyClient from 'polykey/src/lib/agent/PolykeyClient';
import { PassThrough } from 'readable-stream';
import { Duplex } from 'readable-stream';
class PolykeyAgent {
private socketPath;
private server;
Expand All @@ -61,7 +61,7 @@ declare module 'polykey/src/lib/agent/PolykeyAgent' {
private createSecret;
private destroySecret;
private getSecret;
static connectToAgent(getStream?: () => PassThrough): PolykeyClient;
static connectToAgent(getStream?: () => Duplex): PolykeyClient;
static get SocketPath(): string;
static get LogPath(): string;
static DAEMON_SCRIPT_PATH: string;
Expand All @@ -72,10 +72,10 @@ declare module 'polykey/src/lib/agent/PolykeyAgent' {
}
declare module 'polykey/src/lib/agent/PolykeyClient' {
/// <reference types="node" />
import { PassThrough } from 'readable-stream';
import { Duplex } from 'readable-stream';
class PolykeyClient {
private getStream;
constructor(getStream: () => PassThrough);
constructor(getStream: () => Duplex);
sendRequestToAgent(request: Uint8Array): Promise<Uint8Array[]>;
private handleAgentCommunication;
registerNode(path: string, passphrase: string): Promise<boolean>;
Expand All @@ -88,7 +88,7 @@ declare module 'polykey/src/lib/agent/PolykeyClient' {
newVault(nodePath: string, vaultName: string): Promise<boolean>;
destroyVault(nodePath: string, vaultName: string): Promise<boolean>;
listSecrets(nodePath: string, vaultName: string): Promise<string[]>;
createSecret(nodePath: string, vaultName: string, secretName: string, secretPath: string): Promise<boolean>;
createSecret(nodePath: string, vaultName: string, secretName: string, secret: string | Buffer): Promise<boolean>;
destroySecret(nodePath: string, vaultName: string, secretName: string): Promise<boolean>;
getSecret(nodePath: string, vaultName: string, secretName: string): Promise<Buffer>;
getAgentStatus(): Promise<string>;
Expand Down Expand Up @@ -804,13 +804,13 @@ declare module 'polykey/src/lib/vaults/Vault' {
import { EncryptedFS } from 'encryptedfs';
class Vault {
private key;
private keyLen;
name: string;
private efs;
vaultPath: string;
private secrets;
private sharedPubKeys;
private metadataPath;
private mutex;
constructor(name: string, symKey: Buffer, baseDir: string);
/**
* Returns the Encrypted File System used for vault operations
Expand Down Expand Up @@ -870,10 +870,7 @@ declare module 'polykey/src/lib/vaults/Vault' {
* @param getSocket Function to get an active connection to provided address
*/
pullVault(gitClient: GitClient): Promise<void>;
/**
* Initializes the git repository for new vaults
*/
initRepository(): Promise<void>;
getVaultHistory(depth?: number): Promise<string[]>;
private writeMetadata;
private loadMetadata;
private commitChanges;
Expand Down
4,061 changes: 4,060 additions & 1 deletion dist/lib/polykey.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lib/polykey.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/js/search.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/classes/address.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/47099bf/src/lib/peers/PeerInfo.ts#L5">src/lib/peers/PeerInfo.ts:5</a></li>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/f623785/src/lib/peers/PeerInfo.ts#L5">src/lib/peers/PeerInfo.ts:5</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -135,7 +135,7 @@ <h3>ip</h3>
<div class="tsd-signature tsd-kind-icon">ip<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/47099bf/src/lib/peers/PeerInfo.ts#L4">src/lib/peers/PeerInfo.ts:4</a></li>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/f623785/src/lib/peers/PeerInfo.ts#L4">src/lib/peers/PeerInfo.ts:4</a></li>
</ul>
</aside>
</section>
Expand All @@ -145,7 +145,7 @@ <h3>port</h3>
<div class="tsd-signature tsd-kind-icon">port<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/47099bf/src/lib/peers/PeerInfo.ts#L5">src/lib/peers/PeerInfo.ts:5</a></li>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/f623785/src/lib/peers/PeerInfo.ts#L5">src/lib/peers/PeerInfo.ts:5</a></li>
</ul>
</aside>
</section>
Expand All @@ -162,7 +162,7 @@ <h3>to<wbr>String</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/47099bf/src/lib/peers/PeerInfo.ts#L38">src/lib/peers/PeerInfo.ts:38</a></li>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/f623785/src/lib/peers/PeerInfo.ts#L35">src/lib/peers/PeerInfo.ts:35</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -184,7 +184,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> from<wbr>Address<wbr>Info
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/47099bf/src/lib/peers/PeerInfo.ts#L30">src/lib/peers/PeerInfo.ts:30</a></li>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/f623785/src/lib/peers/PeerInfo.ts#L27">src/lib/peers/PeerInfo.ts:27</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -215,7 +215,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> parse</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/47099bf/src/lib/peers/PeerInfo.ts#L18">src/lib/peers/PeerInfo.ts:18</a></li>
<li>Defined in <a href="https://github.com/MatrixAI/js-polykey/blob/f623785/src/lib/peers/PeerInfo.ts#L15">src/lib/peers/PeerInfo.ts:15</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit d726983

Please sign in to comment.