@xcpcio/types 0.5.0 → 0.5.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.cjs CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ const VERSION = "0.5.1";
5
6
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
6
- const VERSION = "0.4.3";
7
+ const GITHUB_SHA = "fb951e6fe1";
7
8
 
8
9
  var ContestState = /* @__PURE__ */ ((ContestState2) => {
9
10
  ContestState2["PENDING"] = "PENDING";
@@ -44,6 +45,7 @@ var SubmissionStatus = /* @__PURE__ */ ((SubmissionStatus2) => {
44
45
  })(SubmissionStatus || {});
45
46
 
46
47
  exports.ContestState = ContestState;
48
+ exports.GITHUB_SHA = GITHUB_SHA;
47
49
  exports.GITHUB_URL = GITHUB_URL;
48
50
  exports.SubmissionStatus = SubmissionStatus;
49
51
  exports.VERSION = VERSION;
package/dist/index.d.ts CHANGED
@@ -85,8 +85,9 @@ interface StatusTimeDisplay {
85
85
  pending: boolean;
86
86
  }
87
87
 
88
+ declare const VERSION = "0.5.1";
88
89
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
89
- declare const VERSION = "0.4.3";
90
+ declare const GITHUB_SHA = "fb951e6fe1";
90
91
 
91
92
  interface ContestIndexConfig {
92
93
  contest_name: string;
@@ -195,4 +196,4 @@ interface Team {
195
196
  }
196
197
  type Teams = Array<Team> | Record<string, Team>;
197
198
 
198
- export { BalloonColor, Base64, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestState, Contributor, DateTimeISO8601String, GITHUB_URL, I18NStringSet, Image, Link, LinkString, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionStatus, Submissions, Team, Teams, Text, ThemeColor, VERSION };
199
+ export { BalloonColor, Base64, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestState, Contributor, DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, I18NStringSet, Image, Link, LinkString, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionStatus, Submissions, Team, Teams, Text, ThemeColor, VERSION };
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
+ const VERSION = "0.5.1";
1
2
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
2
- const VERSION = "0.4.3";
3
+ const GITHUB_SHA = "fb951e6fe1";
3
4
 
4
5
  var ContestState = /* @__PURE__ */ ((ContestState2) => {
5
6
  ContestState2["PENDING"] = "PENDING";
@@ -39,4 +40,4 @@ var SubmissionStatus = /* @__PURE__ */ ((SubmissionStatus2) => {
39
40
  return SubmissionStatus2;
40
41
  })(SubmissionStatus || {});
41
42
 
42
- export { ContestState, GITHUB_URL, SubmissionStatus, VERSION };
43
+ export { ContestState, GITHUB_SHA, GITHUB_URL, SubmissionStatus, VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xcpcio/types",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "XCPCIO Types",
5
5
  "author": "Dup4 <lyuzhi.pan@gmail.com>",
6
6
  "license": "MIT",
@@ -47,6 +47,7 @@
47
47
  "bumpp": "^7.2.0",
48
48
  "eslint": "^8.42.0",
49
49
  "esmo": "^0.14.1",
50
+ "git-repo-info": "^2.1.1",
50
51
  "npm-run-all": "^4.1.5",
51
52
  "pnpm": "^7.33.0",
52
53
  "taze": "^0.10.2",
package/src/constant.ts CHANGED
@@ -1,2 +1,3 @@
1
- export const GITHUB_URL = "import.meta.package.homepage";
2
1
  export const VERSION = "import.meta.package.version";
2
+ export const GITHUB_URL = "import.meta.package.homepage";
3
+ export const GITHUB_SHA = "import.meta.git.repo.abbreviatedSha";