@opfr/utils-type 0.0.0 → 0.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.
@@ -0,0 +1,2 @@
1
+ export declare const CHARACTERISTICS: readonly ["vitality", "strength", "agility", "intelligence", "chance", "wisdom"];
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/characteristics/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,kFAOlB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const CHARACTERISTICS = [
2
+ 'vitality',
3
+ 'strength',
4
+ 'agility',
5
+ 'intelligence',
6
+ 'chance',
7
+ 'wisdom',
8
+ ];
9
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/characteristics/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,UAAU;IACV,UAAU;IACV,SAAS;IACT,cAAc;IACd,QAAQ;IACR,QAAQ;CACA,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type * from './types';
2
+ export * from './constants';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/characteristics/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/characteristics/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { CHARACTERISTICS } from './constants';
2
+ export type Characteristic = (typeof CHARACTERISTICS)[number];
3
+ export type CharacteristicsRecord = Record<Characteristic, number>;
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/characteristics/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/characteristics/types.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './ranks';
2
+ export * from './characteristics';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"}
package/dist/index.es.js CHANGED
@@ -4,14 +4,22 @@ const o = [
4
4
  "Gold",
5
5
  "Platinum",
6
6
  "Diamond"
7
- ], r = {
7
+ ], t = {
8
8
  Bronze: { color: "#813D31", strength: 1, id: "Bronze" },
9
9
  Silver: { color: "#5B6870", strength: 2, id: "Silver" },
10
10
  Gold: { color: "#C46619", strength: 3, id: "Gold" },
11
11
  Platinum: { color: "#88A3CB", strength: 4, id: "Platinum" },
12
12
  Diamond: { color: "#F6bF62", strength: 5, id: "Diamond" }
13
- };
13
+ }, i = [
14
+ "vitality",
15
+ "strength",
16
+ "agility",
17
+ "intelligence",
18
+ "chance",
19
+ "wisdom"
20
+ ];
14
21
  export {
15
- r as RANKS,
22
+ i as CHARACTERISTICS,
23
+ t as RANKS,
16
24
  o as RANK_IDS
17
25
  };
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './ranks';
2
+ export * from './characteristics';
2
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"}
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- (function(e,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(e=typeof globalThis<"u"?globalThis:e||self,o(e.utils={}))})(this,function(e){"use strict";const o=["Bronze","Silver","Gold","Platinum","Diamond"],n={Bronze:{color:"#813D31",strength:1,id:"Bronze"},Silver:{color:"#5B6870",strength:2,id:"Silver"},Gold:{color:"#C46619",strength:3,id:"Gold"},Platinum:{color:"#88A3CB",strength:4,id:"Platinum"},Diamond:{color:"#F6bF62",strength:5,id:"Diamond"}};e.RANKS=n,e.RANK_IDS=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(e,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.utils={}))})(this,function(e){"use strict";const i=["Bronze","Silver","Gold","Platinum","Diamond"],n={Bronze:{color:"#813D31",strength:1,id:"Bronze"},Silver:{color:"#5B6870",strength:2,id:"Silver"},Gold:{color:"#C46619",strength:3,id:"Gold"},Platinum:{color:"#88A3CB",strength:4,id:"Platinum"},Diamond:{color:"#F6bF62",strength:5,id:"Diamond"}},t=["vitality","strength","agility","intelligence","chance","wisdom"];e.CHARACTERISTICS=t,e.RANKS=n,e.RANK_IDS=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opfr/utils-type",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "private": false,
5
5
  "description": "OPFR utils-type",
6
6
  "author": "Matthieu VEIGA",