abi.js
Version:
[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]
388 lines (386 loc) • 8 kB
JavaScript
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/method.ts
var method_exports = {};
__export(method_exports, {
ACL: () => ACL,
BASELINE_CONTROL: () => BASELINE_CONTROL,
BIND: () => BIND,
CHECKIN: () => CHECKIN,
CHECKOUT: () => CHECKOUT,
CONNECT: () => CONNECT,
COPY: () => COPY,
DELETE: () => DELETE,
GET: () => GET,
HEAD: () => HEAD,
LABEL: () => LABEL,
LINK: () => LINK,
LOCK: () => LOCK,
MERGE: () => MERGE,
METHODS: () => METHODS,
MKACTIVITY: () => MKACTIVITY,
MKCALENDAR: () => MKCALENDAR,
MKCOL: () => MKCOL,
MKREDIRECTREF: () => MKREDIRECTREF,
MKWORKSPACE: () => MKWORKSPACE,
MOVE: () => MOVE,
OPTIONS: () => OPTIONS,
ORDERPATCH: () => ORDERPATCH,
PATCH: () => PATCH,
POST: () => POST,
PRI: () => PRI,
PROPFIND: () => PROPFIND,
PROPPATCH: () => PROPPATCH,
PUT: () => PUT,
REBIND: () => REBIND,
REPORT: () => REPORT,
SEARCH: () => SEARCH,
TRACE: () => TRACE,
UNBIND: () => UNBIND,
UNCHECKOUT: () => UNCHECKOUT,
UNLINK: () => UNLINK,
UNLOCK: () => UNLOCK,
UPDATE: () => UPDATE,
UPDATEREDIRECTREF: () => UPDATEREDIRECTREF,
VERSION_CONTROL: () => VERSION_CONTROL,
isAcl: () => isAcl,
isBaselineControl: () => isBaselineControl,
isBind: () => isBind,
isCheckin: () => isCheckin,
isCheckout: () => isCheckout,
isConnect: () => isConnect,
isCopy: () => isCopy,
isDelete: () => isDelete,
isGet: () => isGet,
isHead: () => isHead,
isLabel: () => isLabel,
isLink: () => isLink,
isLock: () => isLock,
isMerge: () => isMerge,
isMethod: () => isMethod,
isMkactivity: () => isMkactivity,
isMkcalendar: () => isMkcalendar,
isMkcol: () => isMkcol,
isMkredirectref: () => isMkredirectref,
isMkworkspace: () => isMkworkspace,
isMove: () => isMove,
isOptions: () => isOptions,
isOrderpatch: () => isOrderpatch,
isPatch: () => isPatch,
isPost: () => isPost,
isPri: () => isPri,
isPropfind: () => isPropfind,
isProppatch: () => isProppatch,
isPut: () => isPut,
isRebind: () => isRebind,
isReport: () => isReport,
isSearch: () => isSearch,
isTrace: () => isTrace,
isUnbind: () => isUnbind,
isUncheckout: () => isUncheckout,
isUnlink: () => isUnlink,
isUnlock: () => isUnlock,
isUpdate: () => isUpdate,
isUpdateredirectref: () => isUpdateredirectref,
isVersionControl: () => isVersionControl
});
module.exports = __toCommonJS(method_exports);
var GET = "GET";
var HEAD = "HEAD";
var POST = "POST";
var PUT = "PUT";
var DELETE = "DELETE";
var ACL = "ACL";
var BASELINE_CONTROL = "BASELINE-CONTROL";
var BIND = "BIND";
var CHECKIN = "CHECKIN";
var CHECKOUT = "CHECKOUT";
var CONNECT = "CONNECT";
var COPY = "COPY";
var LABEL = "LABEL";
var LINK = "LINK";
var LOCK = "LOCK";
var MERGE = "MERGE";
var MKACTIVITY = "MKACTIVITY";
var MKCALENDAR = "MKCALENDAR";
var MKCOL = "MKCOL";
var MKREDIRECTREF = "MKREDIRECTREF";
var MKWORKSPACE = "MKWORKSPACE";
var MOVE = "MOVE";
var OPTIONS = "OPTIONS";
var ORDERPATCH = "ORDERPATCH";
var PATCH = "PATCH";
var PRI = "PRI";
var PROPFIND = "PROPFIND";
var PROPPATCH = "PROPPATCH";
var REBIND = "REBIND";
var REPORT = "REPORT";
var SEARCH = "SEARCH";
var TRACE = "TRACE";
var UNBIND = "UNBIND";
var UNCHECKOUT = "UNCHECKOUT";
var UNLINK = "UNLINK";
var UNLOCK = "UNLOCK";
var UPDATE = "UPDATE";
var UPDATEREDIRECTREF = "UPDATEREDIRECTREF";
var VERSION_CONTROL = "VERSION-CONTROL";
var METHODS = [
GET,
HEAD,
POST,
PUT,
DELETE,
ACL,
BASELINE_CONTROL,
BIND,
CHECKIN,
CHECKOUT,
CONNECT,
COPY,
LABEL,
LINK,
LOCK,
MERGE,
MKACTIVITY,
MKCALENDAR,
MKCOL,
MKREDIRECTREF,
MKWORKSPACE,
MOVE,
OPTIONS,
ORDERPATCH,
PATCH,
PRI,
PROPFIND,
PROPPATCH,
REBIND,
REPORT,
SEARCH,
TRACE,
UNBIND,
UNCHECKOUT,
UNLINK,
UNLOCK,
UPDATE,
UPDATEREDIRECTREF,
VERSION_CONTROL
];
function isMethod(method) {
return method in METHODS;
}
function isGet(method) {
return method === GET;
}
function isHead(method) {
return method === HEAD;
}
function isPost(method) {
return method === POST;
}
function isPut(method) {
return method === PUT;
}
function isDelete(method) {
return method === DELETE;
}
function isAcl(method) {
return method === ACL;
}
function isBaselineControl(method) {
return method === BASELINE_CONTROL;
}
function isBind(method) {
return method === BIND;
}
function isCheckin(method) {
return method === CHECKIN;
}
function isCheckout(method) {
return method === CHECKOUT;
}
function isConnect(method) {
return method === CONNECT;
}
function isCopy(method) {
return method === COPY;
}
function isLabel(method) {
return method === LABEL;
}
function isLink(method) {
return method === LINK;
}
function isLock(method) {
return method === LOCK;
}
function isMerge(method) {
return method === MERGE;
}
function isMkactivity(method) {
return method === MKACTIVITY;
}
function isMkcalendar(method) {
return method === MKCALENDAR;
}
function isMkcol(method) {
return method === MKCOL;
}
function isMkredirectref(method) {
return method === MKREDIRECTREF;
}
function isMkworkspace(method) {
return method === MKWORKSPACE;
}
function isMove(method) {
return method === MOVE;
}
function isOptions(method) {
return method === OPTIONS;
}
function isOrderpatch(method) {
return method === ORDERPATCH;
}
function isPatch(method) {
return method === PATCH;
}
function isPri(method) {
return method === PRI;
}
function isPropfind(method) {
return method === PROPFIND;
}
function isProppatch(method) {
return method === PROPPATCH;
}
function isRebind(method) {
return method === REBIND;
}
function isReport(method) {
return method === REPORT;
}
function isSearch(method) {
return method === SEARCH;
}
function isTrace(method) {
return method === TRACE;
}
function isUnbind(method) {
return method === UNBIND;
}
function isUncheckout(method) {
return method === UNCHECKOUT;
}
function isUnlink(method) {
return method === UNLINK;
}
function isUnlock(method) {
return method === UNLOCK;
}
function isUpdate(method) {
return method === UPDATE;
}
function isUpdateredirectref(method) {
return method === UPDATEREDIRECTREF;
}
function isVersionControl(method) {
return method === VERSION_CONTROL;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ACL,
BASELINE_CONTROL,
BIND,
CHECKIN,
CHECKOUT,
CONNECT,
COPY,
DELETE,
GET,
HEAD,
LABEL,
LINK,
LOCK,
MERGE,
METHODS,
MKACTIVITY,
MKCALENDAR,
MKCOL,
MKREDIRECTREF,
MKWORKSPACE,
MOVE,
OPTIONS,
ORDERPATCH,
PATCH,
POST,
PRI,
PROPFIND,
PROPPATCH,
PUT,
REBIND,
REPORT,
SEARCH,
TRACE,
UNBIND,
UNCHECKOUT,
UNLINK,
UNLOCK,
UPDATE,
UPDATEREDIRECTREF,
VERSION_CONTROL,
isAcl,
isBaselineControl,
isBind,
isCheckin,
isCheckout,
isConnect,
isCopy,
isDelete,
isGet,
isHead,
isLabel,
isLink,
isLock,
isMerge,
isMethod,
isMkactivity,
isMkcalendar,
isMkcol,
isMkredirectref,
isMkworkspace,
isMove,
isOptions,
isOrderpatch,
isPatch,
isPost,
isPri,
isPropfind,
isProppatch,
isPut,
isRebind,
isReport,
isSearch,
isTrace,
isUnbind,
isUncheckout,
isUnlink,
isUnlock,
isUpdate,
isUpdateredirectref,
isVersionControl
});