@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.d.cts CHANGED
@@ -628,6 +628,7 @@ interface GetRemoteURLOptions {
628
628
  interface Repo {
629
629
  id: string;
630
630
  defaultBranch: string;
631
+ createdAt: string;
631
632
  getRemoteURL(options?: GetRemoteURLOptions): Promise<string>;
632
633
  getEphemeralRemoteURL(options?: GetRemoteURLOptions): Promise<string>;
633
634
  getFileStream(options: GetFileOptions): Promise<Response>;
package/dist/index.d.ts CHANGED
@@ -628,6 +628,7 @@ interface GetRemoteURLOptions {
628
628
  interface Repo {
629
629
  id: string;
630
630
  defaultBranch: string;
631
+ createdAt: string;
631
632
  getRemoteURL(options?: GetRemoteURLOptions): Promise<string>;
632
633
  getEphemeralRemoteURL(options?: GetRemoteURLOptions): Promise<string>;
633
634
  getFileStream(options: GetFileOptions): Promise<Response>;
package/dist/index.js CHANGED
@@ -506,7 +506,7 @@ function concatChunks(a, b) {
506
506
 
507
507
  // package.json
508
508
  var package_default = {
509
- version: "1.0.0"};
509
+ version: "1.0.1"};
510
510
 
511
511
  // src/version.ts
512
512
  var PACKAGE_NAME = "code-storage-sdk";
@@ -1744,9 +1744,10 @@ async function parseNoteWriteResponse(response, method) {
1744
1744
  });
1745
1745
  }
1746
1746
  var RepoImpl = class {
1747
- constructor(id, defaultBranch, options, generateJWT) {
1747
+ constructor(id, defaultBranch, createdAt, options, generateJWT) {
1748
1748
  this.id = id;
1749
1749
  this.defaultBranch = defaultBranch;
1750
+ this.createdAt = createdAt;
1750
1751
  this.options = options;
1751
1752
  this.generateJWT = generateJWT;
1752
1753
  this.api = getApiInstance(
@@ -2410,6 +2411,7 @@ var GitStorage = class _GitStorage {
2410
2411
  return new RepoImpl(
2411
2412
  repoId,
2412
2413
  resolvedDefaultBranch ?? "main",
2414
+ (/* @__PURE__ */ new Date()).toISOString(),
2413
2415
  this.options,
2414
2416
  this.generateJWT.bind(this)
2415
2417
  );
@@ -2457,9 +2459,11 @@ var GitStorage = class _GitStorage {
2457
2459
  }
2458
2460
  const body = await resp.json();
2459
2461
  const defaultBranch = body.default_branch ?? "main";
2462
+ const createdAt = body.created_at ?? "";
2460
2463
  return new RepoImpl(
2461
2464
  options.id,
2462
2465
  defaultBranch,
2466
+ createdAt,
2463
2467
  this.options,
2464
2468
  this.generateJWT.bind(this)
2465
2469
  );