Skip to content

Commit a5c6b9c

Browse files
committed
add compiled files to repo
1 parent bc355c1 commit a5c6b9c

13 files changed

+218
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# compiled output
2-
/dist
32
/node_modules
43

54
# Logs

dist/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from './interfaces';
2+
export * from './ipfs.module';
3+
export * from './ipfs.service';

dist/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"use strict";
2+
function __export(m) {
3+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4+
}
5+
Object.defineProperty(exports, "__esModule", { value: true });
6+
__export(require("./ipfs.module"));
7+
__export(require("./ipfs.service"));

dist/interfaces/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './ipfs-module-options.interface';

dist/interfaces/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { Type } from '@nestjs/common';
2+
import { ModuleMetadata } from '@nestjs/common/interfaces';
3+
export declare type IPFSModuleOptions = {
4+
repo?: string | any;
5+
repoAutoMigrate?: boolean;
6+
init?: boolean;
7+
start?: boolean;
8+
pass?: string;
9+
silent?: boolean;
10+
relay?: IPFSRelayOptions;
11+
offline?: boolean;
12+
preload?: boolean;
13+
EXPERIMENTAL?: IPFSExperimentalOptions;
14+
config?: any;
15+
ipld?: any;
16+
libp2p?: any;
17+
connectionManager?: any;
18+
};
19+
export interface IPFSModuleOptionsFactory {
20+
createIPFSOptions(): Promise<IPFSModuleOptions> | IPFSModuleOptions;
21+
}
22+
export interface IPFSModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
23+
useExisting?: Type<IPFSModuleOptionsFactory>;
24+
useClass?: Type<IPFSModuleOptionsFactory>;
25+
useFactory?: (...args: any[]) => Promise<IPFSModuleOptions> | IPFSModuleOptions;
26+
inject?: any[];
27+
imports?: any[];
28+
}
29+
export interface IPFSRelayOptions {
30+
enabled: boolean;
31+
hop: {
32+
enabled: boolean;
33+
active: boolean;
34+
};
35+
}
36+
export interface IPFSExperimentalOptions {
37+
ipnsPubsub: boolean;
38+
sharding: boolean;
39+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });

dist/ipfs.constants.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare const IPFS_MODULE_OPTIONS = "IPFS_MODULE_OPTIONS";

dist/ipfs.constants.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
exports.IPFS_MODULE_OPTIONS = 'IPFS_MODULE_OPTIONS';

dist/ipfs.module.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { DynamicModule } from '@nestjs/common';
2+
import { IPFSModuleOptions, IPFSModuleAsyncOptions } from './interfaces';
3+
export declare class IpfsModule {
4+
static register(options?: IPFSModuleOptions, waitForNode?: boolean): DynamicModule;
5+
static registerAsync(options: IPFSModuleAsyncOptions, waitForNode?: boolean): Promise<DynamicModule>;
6+
private static createIPFSService;
7+
private static createIPFSProviders;
8+
private static createIPFSOptionsProviders;
9+
}

0 commit comments

Comments
 (0)