fv-cms-server
Advanced tools
Comparing version 0.0.14 to 0.0.15
import type { Express } from "express"; | ||
import { Server, ServerOptions } from "./types"; | ||
export declare function create(app: Express, options: ServerOptions): Server; | ||
export * from "./types"; | ||
export default function createServer(app: Express, options: ServerOptions): Server; |
@@ -25,2 +25,5 @@ "use strict"; | ||
}; | ||
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); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -39,3 +42,2 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.create = void 0; | ||
const promises_1 = __importDefault(require("fs/promises")); | ||
@@ -47,3 +49,4 @@ const os_1 = __importDefault(require("os")); | ||
const mime_types_1 = __importDefault(require("mime-types")); | ||
function create(app, options) { | ||
__exportStar(require("./types"), exports); | ||
function createServer(app, options) { | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
@@ -130,3 +133,3 @@ const tmpPath = os_1.default.tmpdir(); | ||
} | ||
exports.create = create; | ||
exports.default = createServer; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "fv-cms-server", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"main": "build/index.js", | ||
"types": "build/types.d.ts", | ||
"types": "build/index.d.ts", | ||
"author": "Finer Vision", | ||
@@ -7,0 +7,0 @@ "license": "MIT", |
@@ -10,3 +10,8 @@ import fs from "fs/promises"; | ||
export function create(app: Express, options: ServerOptions): Server { | ||
export * from "./types"; | ||
export default function createServer( | ||
app: Express, | ||
options: ServerOptions | ||
): Server { | ||
const tmpPath = os.tmpdir(); | ||
@@ -13,0 +18,0 @@ |
@@ -1,3 +0,1 @@ | ||
import type { Express } from "express"; | ||
export type ServerOptions = { | ||
@@ -4,0 +2,0 @@ url: string; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14287
276