@archiva/archiva-nextjs 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -0
- package/dist/index.mjs +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.tsx
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
+
ArchivaError: () => ArchivaError,
|
|
33
34
|
ArchivaProvider: () => ArchivaProvider,
|
|
34
35
|
Timeline: () => Timeline,
|
|
35
36
|
createEvent: () => createEvent2,
|
|
@@ -44,6 +45,17 @@ function ArchivaProvider({ children }) {
|
|
|
44
45
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
|
45
46
|
}
|
|
46
47
|
|
|
48
|
+
// src/types.ts
|
|
49
|
+
var ArchivaError = class extends Error {
|
|
50
|
+
constructor(params) {
|
|
51
|
+
super(params.message);
|
|
52
|
+
this.statusCode = params.statusCode;
|
|
53
|
+
this.code = params.code;
|
|
54
|
+
this.retryAfterSeconds = params.retryAfterSeconds;
|
|
55
|
+
this.details = params.details;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
47
59
|
// src/client.ts
|
|
48
60
|
var DEFAULT_BASE_URL = "https://api.archiva.app";
|
|
49
61
|
function buildHeaders(apiKey, overrides) {
|
|
@@ -374,6 +386,7 @@ function Timeline({
|
|
|
374
386
|
}
|
|
375
387
|
// Annotate the CommonJS export names for ESM import in node:
|
|
376
388
|
0 && (module.exports = {
|
|
389
|
+
ArchivaError,
|
|
377
390
|
ArchivaProvider,
|
|
378
391
|
Timeline,
|
|
379
392
|
createEvent,
|
package/dist/index.mjs
CHANGED
|
@@ -4,6 +4,17 @@ function ArchivaProvider({ children }) {
|
|
|
4
4
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
// src/types.ts
|
|
8
|
+
var ArchivaError = class extends Error {
|
|
9
|
+
constructor(params) {
|
|
10
|
+
super(params.message);
|
|
11
|
+
this.statusCode = params.statusCode;
|
|
12
|
+
this.code = params.code;
|
|
13
|
+
this.retryAfterSeconds = params.retryAfterSeconds;
|
|
14
|
+
this.details = params.details;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
7
18
|
// src/client.ts
|
|
8
19
|
var DEFAULT_BASE_URL = "https://api.archiva.app";
|
|
9
20
|
function buildHeaders(apiKey, overrides) {
|
|
@@ -333,6 +344,7 @@ function Timeline({
|
|
|
333
344
|
] });
|
|
334
345
|
}
|
|
335
346
|
export {
|
|
347
|
+
ArchivaError,
|
|
336
348
|
ArchivaProvider,
|
|
337
349
|
Timeline,
|
|
338
350
|
createEvent2 as createEvent,
|