Comparing version 0.15.2 to 0.15.3
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Watch = exports.Build = exports.CommandToBuild = void 0; | ||
var buildTemplate_1 = __importDefault(require("../buildTemplate")); | ||
@@ -8,0 +9,0 @@ var CommandToBuild = /** @class */ (function () { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.nullCommand = void 0; | ||
exports.nullCommand = { | ||
@@ -4,0 +5,0 @@ exec: function () { |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.run = exports.options = void 0; | ||
var minimist_1 = __importDefault(require("minimist")); | ||
@@ -8,0 +9,0 @@ var getConfig_1 = __importDefault(require("../getConfig")); |
@@ -6,8 +6,9 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
var path_1 = __importDefault(require("path")); | ||
exports.version = { | ||
exec: function () { | ||
console.log("v" + require(path_1.default.join(process.cwd(), 'package.json')).version); | ||
console.log("v" + require(path_1.default.join(__dirname, '../../package.json')).version); | ||
} | ||
}; | ||
//# sourceMappingURL=version.js.map |
@@ -86,9 +86,11 @@ "use strict"; | ||
var rootIndent = ' '; | ||
return { | ||
api: createApiString(input, '.', rootIndent, '', "{\n<% props %>\n }", fs_1.default.existsSync(rootIndexPath) | ||
? getMethodsString('./index', rootIndexPath, rootIndent, '') | ||
: undefined), | ||
imports: imports | ||
}; | ||
var emptyMethodsRegExp = /.+{\n\n? +},?\n/; | ||
var api = createApiString(input, '.', rootIndent, '', "{\n<% props %>\n }", fs_1.default.existsSync(rootIndexPath) | ||
? getMethodsString('./index', rootIndexPath, rootIndent, '') | ||
: undefined); | ||
while (emptyMethodsRegExp.test(api)) { | ||
api = api.replace(emptyMethodsRegExp, ''); | ||
} | ||
return { api: api, imports: imports }; | ||
}); | ||
//# sourceMappingURL=createTemplateValues.js.map |
@@ -37,3 +37,3 @@ export declare type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'PATCH' | 'OPTIONS'; | ||
export declare const dataToURLString: (data: Record<string, any>) => string; | ||
export declare const optionToRequest: (option?: AspidaParams<any> | undefined, type?: "string" | "ArrayBuffer" | "any" | "FormData" | "URLSearchParams" | "Blob" | undefined) => AspidaRequest<any> | undefined; | ||
export declare const optionToRequest: (option?: AspidaParams<any> | undefined, type?: "string" | "ArrayBuffer" | "any" | "FormData" | "URLSearchParams" | "Blob" | undefined) => AspidaRequest | undefined; | ||
export declare type AspidaMethodParams = { | ||
@@ -40,0 +40,0 @@ query?: any; |
@@ -34,2 +34,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.optionToRequest = exports.dataToURLString = exports.headersToObject = void 0; | ||
exports.headersToObject = function (headers) { | ||
@@ -36,0 +37,0 @@ return __spread(headers.entries()).reduce(function (prev, _a) { |
{ | ||
"name": "aspida", | ||
"version": "0.15.2", | ||
"version": "0.15.3", | ||
"description": "TypeScript friendly HTTP client wrapper for the browser and node.js", | ||
@@ -5,0 +5,0 @@ "author": "m-mitsuhide <m.mitsuhide@amatelus.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
67011
755