From a2234e004c2858d2ceb540dfc2ae030773672ad0 Mon Sep 17 00:00:00 2001 From: Christopher Campanale Date: Mon, 7 Jun 2021 16:47:00 -0500 Subject: [PATCH] Re-export internal netsparker-cloud module - this allows for model types and enums to be imported into dependent modules --- dist/index.d.ts | 2 +- dist/index.js | 4 +++ dist/index.js.map | 2 +- docs/globals.html | 32 +++++++++---------- docs/interfaces/inetsparkeradaptermixin.html | 6 ++-- .../inetsparkeradaptermixinsettings.html | 8 ++--- package.json | 2 +- src/index.ts | 1 + 8 files changed, 31 insertions(+), 26 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 959e996..8be36cc 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,6 +1,7 @@ import { ServiceSchema, ServiceSettingSchema, Service } from "moleculer"; import * as Netsparker from 'netsparker-cloud'; import { AccountApi, AgentGroupsApi, AgentsApi, AuditLogsApi, Authentication, AuthenticationProfilesApi, DiscoveryApi, HttpBasicAuth, IssuesApi, NotificationsApi, ScanPoliciesApi, ScanProfilesApi, ScansApi, TeamMembersApi, TechnologiesApi, VulnerabilityApi, WebsiteGroupsApi, WebsitesApi } from "netsparker-cloud"; +export * from 'netsparker-cloud'; export declare type NetsparkerAPIClient = { setDefaultAuthentication(authStrategy: Authentication): void; }; @@ -54,4 +55,3 @@ export interface INetsparkerAdapterMixin extends Service; -export {}; diff --git a/dist/index.js b/dist/index.js index 0c64715..18e9c18 100644 --- a/dist/index.js +++ b/dist/index.js @@ -18,10 +18,14 @@ var __importStar = (this && this.__importStar) || function (mod) { __setModuleDefault(result, mod); return result; }; +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.NetsparkerAdapterMixin = exports.DefaultNetsparkerAdapterSettings = void 0; const Netsparker = __importStar(require("netsparker-cloud")); const netsparker_cloud_1 = require("netsparker-cloud"); +__exportStar(require("netsparker-cloud"), exports); exports.DefaultNetsparkerAdapterSettings = { netsparkerBasePath: undefined, netsparkerUserId: undefined, diff --git a/dist/index.js.map b/dist/index.js.map index 2a09ea4..1d97572 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,6DAA+C;AAC/C,uDAAgU;AAqDnT,QAAA,gCAAgC,GAAoC;IAC/E,kBAAkB,EAAE,SAAS;IAC7B,gBAAgB,EAAE,SAAS;IAC3B,eAAe,EAAE,SAAS;IAC1B,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAQW,QAAA,sBAAsB,GAAmD;IAEpF,IAAI,EAAE,YAAY;IAElB,QAAQ,EAAE,wCAAgC;IAE1C,QAAQ,EAAE;QACR,UAAU,EAAE,IAAI;KACjB;IAED,OAAO,EAAE,EAAE;IAEX,OAAO,EAAE,EAAE;IAEX,OAAO;QACL,IAAI,CAAC,iBAAiB,GAAG,EAAuB,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,IAAI,gCAAa,EAAE,CAAC;QAC1C,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE;YACnC,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;SAClE;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;SACjE;QACD,IAAI,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC9D,IAAI,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;QAC7D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAC;QACnE,uBAA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C;CAEF,CAAC"} \ No newline at end of file diff --git a/docs/globals.html b/docs/globals.html index 8adcf8d..d8f2557 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -95,7 +95,7 @@

NetsparkerAPIClient

NetsparkerAPIClient: object
@@ -110,7 +110,7 @@

NetsparkerAdapter

NetsparkerAdapter: object
@@ -128,7 +128,7 @@

Const DefaultNetsparker
DefaultNetsparkerAdapterSettings: object
@@ -137,7 +137,7 @@

accountInfoOnStart

accountInfoOnStart: true = true
@@ -147,7 +147,7 @@

netsparkerBasePath

netsparkerBasePath: undefined = undefined
@@ -157,7 +157,7 @@

netsparkerToken

netsparkerToken: undefined = undefined
@@ -167,7 +167,7 @@

netsparkerUserId

netsparkerUserId: undefined = undefined
@@ -178,7 +178,7 @@

Const NetsparkerAdapter
NetsparkerAdapterMixin: object
@@ -187,7 +187,7 @@

actions

actions: object
@@ -202,7 +202,7 @@

methods

methods: object
@@ -217,7 +217,7 @@

name

name: string = "Netsparker"
@@ -227,7 +227,7 @@

settings

settings: INetsparkerAdapterMixinSettings = DefaultNetsparkerAdapterSettings
@@ -241,7 +241,7 @@

created

  • Parameters

    @@ -264,7 +264,7 @@

    started

  • Parameters

    @@ -283,7 +283,7 @@

    metadata

    metadata: object
    @@ -292,7 +292,7 @@

    netsparker

    netsparker: boolean = true
    diff --git a/docs/interfaces/inetsparkeradaptermixin.html b/docs/interfaces/inetsparkeradaptermixin.html index 90a793f..f6b3a9c 100644 --- a/docs/interfaces/inetsparkeradaptermixin.html +++ b/docs/interfaces/inetsparkeradaptermixin.html @@ -266,7 +266,7 @@

    netsparkerAdapter

    netsparkerAdapter: NetsparkerAdapter
    @@ -276,7 +276,7 @@

    netsparkerAuth

    netsparkerAuth: HttpBasicAuth
    @@ -286,7 +286,7 @@

    netsparkerSDK

    netsparkerSDK: "/Users/campanalecp/git/niaid/moleculer-netsparker-cloud/node_modules/netsparker-cloud/dist/api"
    diff --git a/docs/interfaces/inetsparkeradaptermixinsettings.html b/docs/interfaces/inetsparkeradaptermixinsettings.html index 230e331..7a2d396 100644 --- a/docs/interfaces/inetsparkeradaptermixinsettings.html +++ b/docs/interfaces/inetsparkeradaptermixinsettings.html @@ -163,7 +163,7 @@

    Optional accountInfo
    accountInfoOnStart: undefined | false | true
    @@ -178,7 +178,7 @@

    Optional netsparkerBasenetsparkerBasePath: undefined | string

    @@ -194,7 +194,7 @@

    Optional netsparkerToken<
    netsparkerToken: undefined | string
    @@ -210,7 +210,7 @@

    Optional netsparkerUsernetsparkerUserId: undefined | string

    diff --git a/package.json b/package.json index 2c49482..1a397f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moleculer-netsparker-cloud", - "version": "0.1.2", + "version": "0.1.3", "description": "Moleculer mixin for consuming Netsparker Cloud services.", "main": "dist/index.js", "scripts": { diff --git a/src/index.ts b/src/index.ts index 728fba3..eb749d4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ import { ServiceSchema, ServiceSettingSchema, Service } from "moleculer"; import * as Netsparker from 'netsparker-cloud'; import { AccountApi, AgentGroupsApi, AgentsApi, APIS, AuditLogsApi, Authentication, AuthenticationProfilesApi, DiscoveryApi, HttpBasicAuth, IssuesApi, NotificationsApi, ScanPoliciesApi, ScanProfilesApi, ScansApi, TeamMembersApi, TechnologiesApi, VulnerabilityApi, WebsiteGroupsApi, WebsitesApi } from "netsparker-cloud"; +export * from 'netsparker-cloud'; export type NetsparkerAPIClient = { setDefaultAuthentication(authStrategy: Authentication): void;