@pierre/storage 1.0.0 → 1.0.1
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.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +5 -1
- package/src/types.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -512,7 +512,7 @@ function concatChunks(a, b) {
|
|
|
512
512
|
|
|
513
513
|
// package.json
|
|
514
514
|
var package_default = {
|
|
515
|
-
version: "1.0.
|
|
515
|
+
version: "1.0.1"};
|
|
516
516
|
|
|
517
517
|
// src/version.ts
|
|
518
518
|
var PACKAGE_NAME = "code-storage-sdk";
|
|
@@ -1750,9 +1750,10 @@ async function parseNoteWriteResponse(response, method) {
|
|
|
1750
1750
|
});
|
|
1751
1751
|
}
|
|
1752
1752
|
var RepoImpl = class {
|
|
1753
|
-
constructor(id, defaultBranch, options, generateJWT) {
|
|
1753
|
+
constructor(id, defaultBranch, createdAt, options, generateJWT) {
|
|
1754
1754
|
this.id = id;
|
|
1755
1755
|
this.defaultBranch = defaultBranch;
|
|
1756
|
+
this.createdAt = createdAt;
|
|
1756
1757
|
this.options = options;
|
|
1757
1758
|
this.generateJWT = generateJWT;
|
|
1758
1759
|
this.api = getApiInstance(
|
|
@@ -2416,6 +2417,7 @@ var GitStorage = class _GitStorage {
|
|
|
2416
2417
|
return new RepoImpl(
|
|
2417
2418
|
repoId,
|
|
2418
2419
|
resolvedDefaultBranch ?? "main",
|
|
2420
|
+
(/* @__PURE__ */ new Date()).toISOString(),
|
|
2419
2421
|
this.options,
|
|
2420
2422
|
this.generateJWT.bind(this)
|
|
2421
2423
|
);
|
|
@@ -2463,9 +2465,11 @@ var GitStorage = class _GitStorage {
|
|
|
2463
2465
|
}
|
|
2464
2466
|
const body = await resp.json();
|
|
2465
2467
|
const defaultBranch = body.default_branch ?? "main";
|
|
2468
|
+
const createdAt = body.created_at ?? "";
|
|
2466
2469
|
return new RepoImpl(
|
|
2467
2470
|
options.id,
|
|
2468
2471
|
defaultBranch,
|
|
2472
|
+
createdAt,
|
|
2469
2473
|
this.options,
|
|
2470
2474
|
this.generateJWT.bind(this)
|
|
2471
2475
|
);
|