western-signs 1.5.0 → 1.6.0
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/README.md +1 -0
- package/dist/index.d.ts +125 -68
- package/dist/index.js +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ Simple interface for [western astrological](https://en.wikipedia.org/wiki/Wester
|
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](https://github.com/marcmarine/western-signs/releases)
|
|
8
8
|
[](https://marcmarine.github.io/western-signs)
|
|
9
|
+

|
|
9
10
|
|
|
10
11
|
The **Western Signs** library provides detailed information about each astrological sign, including its `name`, `element`, `modality`, `rulingPlanet` and `glyph`, among other things. Additionally, you can specify the language for translations.
|
|
11
12
|
|
package/dist/index.d.ts
CHANGED
|
@@ -75,6 +75,15 @@ declare const SEASONS: {
|
|
|
75
75
|
readonly AUTUMN: "autumn";
|
|
76
76
|
readonly WINTER: "winter";
|
|
77
77
|
};
|
|
78
|
+
export declare const HEMISPHERES: {
|
|
79
|
+
readonly LOWER: "lower";
|
|
80
|
+
readonly UPPER: "upper";
|
|
81
|
+
};
|
|
82
|
+
export declare const HOUSE_MODALITIES: {
|
|
83
|
+
readonly ANGULAR: "angular";
|
|
84
|
+
readonly SUCCEDENT: "succedent";
|
|
85
|
+
readonly CADENT: "cadent";
|
|
86
|
+
};
|
|
78
87
|
declare const dictionaries: {
|
|
79
88
|
en: Dictionary;
|
|
80
89
|
es: Dictionary;
|
|
@@ -83,14 +92,16 @@ declare const dictionaries: {
|
|
|
83
92
|
export type Language = keyof typeof dictionaries;
|
|
84
93
|
export type ObjectValues<T> = T[keyof T];
|
|
85
94
|
export type Signs = ObjectValues<typeof SIGNS>;
|
|
86
|
-
export type
|
|
95
|
+
export type Element = ObjectValues<typeof ELEMENTS>;
|
|
87
96
|
export type Modalities = ObjectValues<typeof MODALITIES>;
|
|
88
97
|
export type Planets = ObjectValues<typeof PLANETS>;
|
|
89
98
|
export type Polarities = ObjectValues<typeof POLARITIES>;
|
|
90
99
|
export type BodyParts = ObjectValues<typeof BODY_PARTS>;
|
|
91
100
|
export type Characters = ObjectValues<typeof CHARACTERS>;
|
|
92
101
|
export type Seasons = ObjectValues<typeof SEASONS>;
|
|
93
|
-
export
|
|
102
|
+
export type Hemispheres = ObjectValues<typeof HEMISPHERES>;
|
|
103
|
+
export type HouseModalities = ObjectValues<typeof HOUSE_MODALITIES>;
|
|
104
|
+
export interface Sign {
|
|
94
105
|
/**
|
|
95
106
|
* The body part associated with the zodiac sign.
|
|
96
107
|
* Indicates the areas of the body influenced by the sign.
|
|
@@ -109,7 +120,7 @@ export interface Sign extends Record<string, any> {
|
|
|
109
120
|
* Also known as triplicities in astrology.
|
|
110
121
|
* Examples: "Fire" for Aries, "Earth" for Taurus.
|
|
111
122
|
*/
|
|
112
|
-
element:
|
|
123
|
+
element: Element;
|
|
113
124
|
/**
|
|
114
125
|
* The end date of the zodiac sign period.
|
|
115
126
|
* This date marks the end of the zodiac sign's influence for the given year.
|
|
@@ -164,68 +175,120 @@ export interface Sign extends Record<string, any> {
|
|
|
164
175
|
*/
|
|
165
176
|
startDate: Date;
|
|
166
177
|
}
|
|
167
|
-
export interface House
|
|
178
|
+
export interface House {
|
|
179
|
+
/**
|
|
180
|
+
* Element associated with the house’s natural zodiac sign.
|
|
181
|
+
*
|
|
182
|
+
* Represents one of the four classical elements — Fire, Earth, Air, or Water — reflecting the essential nature and mode of expression of the house.
|
|
183
|
+
*
|
|
184
|
+
* Example: "Fire" for House 1 (Aries), "Earth" for House 2 (Taurus)
|
|
185
|
+
*/
|
|
186
|
+
element: Element;
|
|
187
|
+
/**
|
|
188
|
+
* Hemisphere division based on the horizon line.
|
|
189
|
+
*
|
|
190
|
+
* - **Lower/Northern Hemisphere (Houses 1–6):** Known as the *Personal Houses*, these focus on individual development, personal identity, and foundational life needs.
|
|
191
|
+
* - **Upper/Southern Hemisphere (Houses 7–12):** Known as the *Collective Houses*, these reflect relationships with others, society, and broader humanity.
|
|
192
|
+
*/
|
|
193
|
+
hemisphere: Hemispheres;
|
|
194
|
+
/**
|
|
195
|
+
* Key themes and associated concepts.
|
|
196
|
+
*
|
|
197
|
+
* Represents the core ideas or psychological themes governed by the house.
|
|
198
|
+
* Example: ['Self-image', 'Identity', 'Impressions on others', 'Personality']
|
|
199
|
+
*/
|
|
200
|
+
keywords: string[] | string;
|
|
168
201
|
/**
|
|
169
|
-
* Number of the astrological house (1
|
|
170
|
-
*
|
|
171
|
-
*
|
|
202
|
+
* Number of the astrological house (1–12).
|
|
203
|
+
*
|
|
204
|
+
* Each house corresponds to a specific domain of life experience.
|
|
205
|
+
* Example: 1 = Self and identity, 7 = Partnerships and relating.
|
|
172
206
|
*/
|
|
173
207
|
number: number;
|
|
174
208
|
/**
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
209
|
+
* Developmental phase grouping.
|
|
210
|
+
*
|
|
211
|
+
* - **Phase I (Houses 1–4):** Focus on self-awareness and personal foundation — the “me-in-here”.
|
|
212
|
+
* - **Phase II (Houses 5–8):** Development of the autonomous self in relationship — the “me” meets the “you”.
|
|
213
|
+
* - **Phase III (Houses 9–12):** Expansion of self toward collective consciousness and universal understanding.
|
|
178
214
|
*/
|
|
179
|
-
|
|
215
|
+
phase: 1 | 2 | 3;
|
|
180
216
|
/**
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
217
|
+
* Quadrant of the chart based on the intersection of horizon and meridian axes.
|
|
218
|
+
*
|
|
219
|
+
* - **Quadrant I (Houses 1–3):** Formation of personal identity through the body, possessions, and environment.
|
|
220
|
+
* - **Quadrant II (Houses 4–6):** Further development of self via family, creativity, and refinement of skills.
|
|
221
|
+
* - **Quadrant III (Houses 7–9):** Expansion through relationships, transformation, and new vision of self.
|
|
222
|
+
* - **Quadrant IV (Houses 10–12):** Integration into society and pursuit of collective and spiritual purpose.
|
|
184
223
|
*/
|
|
185
|
-
|
|
224
|
+
quadrant: 1 | 2 | 3 | 4;
|
|
186
225
|
/**
|
|
187
226
|
* Ruling planet of the house.
|
|
188
|
-
*
|
|
189
|
-
*
|
|
227
|
+
*
|
|
228
|
+
* Indicates the primary planetary influence over the house’s themes.
|
|
229
|
+
* Example: "Mars", "Venus"
|
|
190
230
|
*/
|
|
191
231
|
rulingPlanet: string;
|
|
192
232
|
/**
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
233
|
+
* Zodiac sign associated with the house.
|
|
234
|
+
*
|
|
235
|
+
* Reflects the natural energy or archetype that aligns with the house.
|
|
236
|
+
* Example: "Aries", "Taurus"
|
|
196
237
|
*/
|
|
197
|
-
|
|
238
|
+
sign: string;
|
|
239
|
+
/**
|
|
240
|
+
* Title or name of the house.
|
|
241
|
+
*
|
|
242
|
+
* A formal or descriptive label that captures the house’s core function or domain.
|
|
243
|
+
* Example: "The Individual Personality", "Values and Possessions"
|
|
244
|
+
*/
|
|
245
|
+
title: string;
|
|
246
|
+
/**
|
|
247
|
+
* Modalities of the houses (Angular, Succedent, Cadent).
|
|
248
|
+
*
|
|
249
|
+
* Traditional classification describing the house’s dynamic strength and function:
|
|
250
|
+
* - **Angular (Houses 1, 4, 7, 10):** Active, initiating, most powerful.
|
|
251
|
+
* - **Succedent (Houses 2, 5, 8, 11):** Stabilizing, sustaining what was initiated.
|
|
252
|
+
* - **Cadent (Houses 3, 6, 9, 12):** Transitional, preparatory, often more internal or mental.
|
|
253
|
+
*/
|
|
254
|
+
modality: HouseModalities;
|
|
198
255
|
}
|
|
199
256
|
export type Dictionary = {
|
|
200
|
-
[key in Signs |
|
|
257
|
+
[key in Signs | Element | Modalities | Planets | Polarities | BodyParts | Characters | Seasons | Hemispheres | HouseModalities]: string;
|
|
201
258
|
} & {
|
|
202
259
|
houseTitles: string[];
|
|
203
260
|
houseKeywords: string[][];
|
|
204
261
|
};
|
|
205
262
|
/**
|
|
206
|
-
* Get
|
|
263
|
+
* Get all astrological houses with their translations for a specified language.
|
|
207
264
|
*
|
|
208
|
-
* @param {Signs} sign - The name of the astrological sign to retrieve.
|
|
209
265
|
* @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
|
|
210
|
-
* @returns {
|
|
266
|
+
* @returns {House[]} An array of House objects with translated values based on the specified language.
|
|
211
267
|
*
|
|
212
268
|
* @example
|
|
213
|
-
* import {
|
|
269
|
+
* import { getHouses } from 'western-houses';
|
|
214
270
|
*
|
|
215
|
-
* // Retrieve information about
|
|
216
|
-
* const
|
|
217
|
-
* console.log(
|
|
271
|
+
* // Retrieve information about all houses in English
|
|
272
|
+
* const data = getHouses();
|
|
273
|
+
* console.log(data);
|
|
218
274
|
* // Output:
|
|
219
|
-
* //
|
|
220
|
-
* //
|
|
221
|
-
* //
|
|
222
|
-
* //
|
|
223
|
-
* //
|
|
224
|
-
* //
|
|
225
|
-
* //
|
|
226
|
-
* //
|
|
275
|
+
* // [
|
|
276
|
+
* // {
|
|
277
|
+
* // number: 1,
|
|
278
|
+
* // title: 'The individual personality',
|
|
279
|
+
* // sign: 'Aries',
|
|
280
|
+
* // rulingPlanet: 'Mars',
|
|
281
|
+
* // keywords: [
|
|
282
|
+
* // 'Self-image',
|
|
283
|
+
* // 'Identity',
|
|
284
|
+
* // 'Impressions on others',
|
|
285
|
+
* // 'Personality'
|
|
286
|
+
* // ]
|
|
287
|
+
* // },
|
|
288
|
+
* // ...
|
|
289
|
+
* // ]
|
|
227
290
|
*/
|
|
228
|
-
export declare function
|
|
291
|
+
export declare function getHouses(lang?: Language): House[];
|
|
229
292
|
/**
|
|
230
293
|
* Retrieve the astrological sign corresponding to a given date, with optional translations for the specified language.
|
|
231
294
|
*
|
|
@@ -251,6 +314,30 @@ export declare function getSignByName(sign: Signs, lang?: Language): Sign | null
|
|
|
251
314
|
* // }
|
|
252
315
|
*/
|
|
253
316
|
export declare function getSignByDate(date: Date, lang?: Language): Sign | null;
|
|
317
|
+
/**
|
|
318
|
+
* Get the astrological sign by its name with translations for the specified language.
|
|
319
|
+
*
|
|
320
|
+
* @param {Signs} sign - The name of the astrological sign to retrieve.
|
|
321
|
+
* @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
|
|
322
|
+
* @returns {Sign | null} An object representing the sign with translated values or null if the sign or dictionary is not found.
|
|
323
|
+
*
|
|
324
|
+
* @example
|
|
325
|
+
* import { getSignByName, SIGNS } from 'western-signs';
|
|
326
|
+
*
|
|
327
|
+
* // Retrieve information about Taurus in English
|
|
328
|
+
* const taurusData = getSignByName(SIGNS.TAURUS);
|
|
329
|
+
* console.log(taurusData);
|
|
330
|
+
* // Output:
|
|
331
|
+
* // {
|
|
332
|
+
* // name: 'Taurus',
|
|
333
|
+
* // element: 'Earth',
|
|
334
|
+
* // modality: 'Fixed',
|
|
335
|
+
* // rulingPlanet: 'Venus',
|
|
336
|
+
* // symbol: '♉'
|
|
337
|
+
* // [...]
|
|
338
|
+
* // }
|
|
339
|
+
*/
|
|
340
|
+
export declare function getSignByName(sign: Signs, lang?: Language): Sign | null;
|
|
254
341
|
/**
|
|
255
342
|
|
|
256
343
|
* Get all astrological signs with their translations for a specified language.
|
|
@@ -284,35 +371,5 @@ export declare function getSignByDate(date: Date, lang?: Language): Sign | null;
|
|
|
284
371
|
* // ]
|
|
285
372
|
*/
|
|
286
373
|
export declare function getSigns(lang?: Language): Sign[];
|
|
287
|
-
/**
|
|
288
|
-
* Get all astrological houses with their translations for a specified language.
|
|
289
|
-
*
|
|
290
|
-
* @param {Language} [lang='en'] - The language code for which translations are needed. Defaults to 'en'.
|
|
291
|
-
* @returns {House[]} An array of House objects with translated values based on the specified language.
|
|
292
|
-
*
|
|
293
|
-
* @example
|
|
294
|
-
* import { getHouses } from 'western-houses';
|
|
295
|
-
*
|
|
296
|
-
* // Retrieve information about all houses in English
|
|
297
|
-
* const data = getHouses();
|
|
298
|
-
* console.log(data);
|
|
299
|
-
* // Output:
|
|
300
|
-
* // [
|
|
301
|
-
* // {
|
|
302
|
-
* // number: 1,
|
|
303
|
-
* // title: 'The individual personality',
|
|
304
|
-
* // sign: 'Aries',
|
|
305
|
-
* // rulingPlanet: 'Mars',
|
|
306
|
-
* // keywords: [
|
|
307
|
-
* // 'Self-image',
|
|
308
|
-
* // 'Identity',
|
|
309
|
-
* // 'Impressions on others',
|
|
310
|
-
* // 'Personality'
|
|
311
|
-
* // ]
|
|
312
|
-
* // },
|
|
313
|
-
* // ...
|
|
314
|
-
* // ]
|
|
315
|
-
*/
|
|
316
|
-
export declare function getHouses(lang?: Language): House[];
|
|
317
374
|
|
|
318
375
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var x=Object.create;var{getPrototypeOf:F,defineProperty:y,getOwnPropertyNames:j}=Object;var W=Object.prototype.hasOwnProperty;var z=(e,a,n)=>{n=e!=null?x(F(e)):{};let r=a||!e||!e.__esModule?y(n,"default",{value:e,enumerable:!0}):n;for(let m of j(e))if(!W.call(r,m))y(r,m,{get:()=>e[m],enumerable:!0});return r};var I=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var R=I((se,P)=>{var Y={aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},ar:{name:"Arabic",nativeName:"العربية"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bn:{name:"Bengali",nativeName:"বাংলা"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"Čeština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"Dansk"},de:{name:"German",nativeName:"Deutsch"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},es:{name:"Spanish",nativeName:"Español"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"Føroyskt"},fr:{name:"French",nativeName:"Français"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},ko:{name:"Korean",nativeName:"한국어"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},mr:{name:"Marathi",nativeName:"मराठी"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},ru:{name:"Russian",nativeName:"Русский"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"Slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە"},uk:{name:"Ukrainian",nativeName:"Українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zh:{name:"Chinese",nativeName:"中文"},zu:{name:"Zulu",nativeName:"isiZulu"}};P.exports=Y});var U=I((oe,w)=>{var h=R(),b={},d={},C=[],k=[],L=[];for(let e in h){let{name:a,nativeName:n}=h[e];b[e]=d[a.toLowerCase()]=d[n.toLowerCase()]={code:e,name:a,nativeName:n},C.push(e),k.push(a),L.push(n)}w.exports=class e{static getLanguages(a=[]){return a.map((n)=>e.validate(n)?Object.assign({},b[n]):{code:n,name:"",nativeName:""})}static getName(a){return e.validate(a)?h[a].name:""}static getAllNames(){return k.slice()}static getNativeName(a){return e.validate(a)?h[a].nativeName:""}static getAllNativeNames(){return L.slice()}static getCode(a){return a=a.toLowerCase(),d.hasOwnProperty(a)?d[a].code:""}static getAllCodes(){return C.slice()}static validate(a){return h.hasOwnProperty(a)}}});var i={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},t={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},s={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},o={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},l={POSITIVE:"positive",NEGATIVE:"negative"},u={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},N={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},c={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},v=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],S=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"];var q={aries:{bodyPart:u.HEAD,character:N.RAM,element:o.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:s.CARDINAL,name:i.ARIES,number:1,pole:l.POSITIVE,rulingPlanet:t.MARS,season:c.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:u.THROAT,character:N.BULL,element:o.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:s.FIXED,name:i.TAURUS,number:2,pole:l.NEGATIVE,rulingPlanet:t.VENUS,season:c.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:u.LUNGS,character:N.TWINS,element:o.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:s.MUTABLE,name:i.GEMINI,number:3,pole:l.POSITIVE,rulingPlanet:t.MERCURY,season:c.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:u.STOMACH,character:N.CRAB,element:o.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:s.CARDINAL,name:i.CANCER,number:4,pole:l.NEGATIVE,rulingPlanet:t.MOON,season:c.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:u.HEART,character:N.LION,element:o.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:s.FIXED,name:i.LEO,number:5,pole:l.POSITIVE,rulingPlanet:t.SUN,season:c.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:u.BOWELS,character:N.VIRGIN,element:o.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:s.MUTABLE,name:i.VIRGO,number:6,pole:l.NEGATIVE,rulingPlanet:t.MERCURY,season:c.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:u.REINS,character:N.BALANCE,element:o.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:s.CARDINAL,name:i.LIBRA,number:7,pole:l.POSITIVE,rulingPlanet:t.VENUS,season:c.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:u.SECRETS,character:N.SCORPION,element:o.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:s.FIXED,name:i.SCORPIO,number:8,pole:l.NEGATIVE,rulingPlanet:t.PLUTO,season:c.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:u.THIGHS,character:N.ARCHER,element:o.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:s.MUTABLE,name:i.SAGITTARIUS,number:9,pole:l.POSITIVE,rulingPlanet:t.JUPITER,season:c.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:u.KNEES,character:N.GOAT,element:o.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:s.CARDINAL,name:i.CAPRICORN,number:10,pole:l.NEGATIVE,rulingPlanet:t.SATURN,season:c.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:u.ANKLES,character:N.THE_MAN,element:o.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:s.FIXED,name:i.AQUARIUS,number:11,pole:l.POSITIVE,rulingPlanet:t.URANUS,season:c.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:u.FEET,character:N.THE_FISHES,element:o.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:s.MUTABLE,name:i.PISCES,number:12,pole:l.NEGATIVE,rulingPlanet:t.NEPTUNE,season:c.WINTER,startDate:new Date(2020,1,21)}},A=q;var G=z(U(),1);var _={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]]},O=_;var J={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]]},M=J;var X={aries:"Àries",taurus:"Taure",gemini:"Bessons",cancer:"Cranc",leo:"Lleó",virgo:"Verge",libra:"Balança",scorpio:"Escorpió",sagittarius:"Sagitari",capricorn:"Capricorn",aquarius:"Aquari",pisces:"Peixos",fire:"Foc",earth:"Terra",air:"Aire",water:"Aigua",cardinal:"Cardinal",fixed:"Fix",mutable:"Mutable",mars:"Mart",venus:"Venus",mercury:"Mercuri",moon:"Lluna",sun:"Sol",pluto:"Plutó",jupiter:"Júpiter",saturn:"Saturn",uranus:"Urà",neptune:"Neptú",positive:"Positiu",negative:"Negatiu",head:"Cap",throat:"Gola",lungs:"Pulmons",stomach:"Estómac",heart:"Cor",bowels:"Intestins",reins:"Ronyons",secrets:"Genitals",thighs:"Cuixes",knees:"Genolls",ankles:"Turmells",feet:"Peus",ram:"Carner",bull:"Bou",twins:"Bessons",crab:"Cranc",lion:"Lleó",virgin:"Verge",balance:"Balança",scorpion:"Escorpí",archer:"Arquer",goat:"Cabra","the-man":"L'Home","the-fishes":"Els Peixos",spring:"Primavera",summer:"Estiu",autumn:"Tardor",winter:"Hivern",houseTitles:["La personalitat individual","Valors i possessions","Comunicació","Arrels i orígens","Plaer i creativitat","Feina i rutina","Relacionar-se","Pèrdua i propietat comuna","Filosofia i països llunyans","Ocupació i vocació","Amics i coneguts","Més enllà del personal"],houseKeywords:[["Autoimatge","Identitat","Impressions als altres","Personalitat"],["Recursos personals","Valors","Seguretat","Possessions"],["Entorn","Germans","Comunicació","Coneixement"],["Llar","Família","El passat","Arrels"],["Infants","Creativitat","Expressió","Plaer"],["Rutines","Servei","Salut","Productivitat"],["Associacions","Relacions","Equilibri","Col·laboració"],["Transformacions","Crisi","Inicis","Renaixement"],["Filosofia","Viatges","Obertura","Saviesa"],["Públic","Llegat","Carrera","Ambició"],["Amics","Comunitat","Somnis","Aspiracions"],["Inconscient","Fantasies","Connexions","Sanació"]]},D=X;var p={en:O,es:M,ca:D};var he=G.default.getName;function T(e,a){let n=p[a];return{bodyPart:n[e.bodyPart],character:n[e.character],element:n[e.element],endDate:e.endDate,glyph:e.glyph,modality:n[e.modality],name:n[e.name],number:e.number,pole:n[e.pole],rulingPlanet:n[e.rulingPlanet],season:n[e.season],startDate:e.startDate}}function f(e,a,n){let r=n.getMonth()+1,m=n.getDate(),E=e.getMonth()+1,V=e.getDate(),g=a.getMonth()+1,B=a.getDate();return r===E&&m>=V||r===g&&m<=B||E>g&&(r>E||r<g)}function H(e,a){let n=p[a],[,r]=e.title.split("-"),[,m]=e.keywords.split("-");return{number:e.number,title:n.houseTitles[Number(r)-1],sign:n[e.sign],rulingPlanet:n[e.rulingPlanet],keywords:n.houseKeywords[Number(m)-1]}}function Q(e,a="en"){let n=A[e];if(!n)return null;return T(n,a)}function Z(e,a="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let n of Object.keys(A)){let r=A[n],{startDate:m,endDate:E}=r;if(f(m,E,e))return T(r,a)}return null}function $(e="en"){return Object.keys(A).map((a)=>{let n={};return Object.entries(A[a]).forEach(([r,m])=>{let E=p[e][m];n[r]=E??m}),n})}var ee=[{number:1,sign:i.ARIES,rulingPlanet:t.MARS,title:v[0],keywords:S[0]},{number:2,sign:i.TAURUS,rulingPlanet:t.VENUS,title:v[1],keywords:S[1]},{number:3,sign:i.GEMINI,rulingPlanet:t.MERCURY,title:v[2],keywords:S[2]},{number:4,sign:i.CANCER,rulingPlanet:t.MOON,title:v[3],keywords:S[3]},{number:5,sign:i.LEO,rulingPlanet:t.SUN,title:v[4],keywords:S[4]},{number:6,sign:i.VIRGO,rulingPlanet:t.MERCURY,title:v[5],keywords:S[5]},{number:7,sign:i.LIBRA,rulingPlanet:t.VENUS,title:v[6],keywords:S[6]},{number:8,sign:i.SCORPIO,rulingPlanet:t.PLUTO,title:v[7],keywords:S[7]},{number:9,sign:i.SAGITTARIUS,rulingPlanet:t.JUPITER,title:v[8],keywords:S[8]},{number:10,sign:i.CAPRICORN,rulingPlanet:t.SATURN,title:v[9],keywords:S[9]},{number:11,sign:i.AQUARIUS,rulingPlanet:t.URANUS,title:v[10],keywords:S[10]},{number:12,sign:i.PISCES,rulingPlanet:t.NEPTUNE,title:v[11],keywords:S[11]}],K=ee;function ae(e="en"){return K.map((a)=>{return H(a,e)})}export{$ as getSigns,Q as getSignByName,Z as getSignByDate,ae as getHouses,i as SIGNS,t as PLANETS,s as MODALITIES,o as ELEMENTS};
|
|
1
|
+
var a={ARIES:"aries",TAURUS:"taurus",GEMINI:"gemini",CANCER:"cancer",LEO:"leo",VIRGO:"virgo",LIBRA:"libra",SCORPIO:"scorpio",SAGITTARIUS:"sagittarius",CAPRICORN:"capricorn",AQUARIUS:"aquarius",PISCES:"pisces"},s={MARS:"mars",VENUS:"venus",MERCURY:"mercury",MOON:"moon",SUN:"sun",PLUTO:"pluto",JUPITER:"jupiter",SATURN:"saturn",URANUS:"uranus",NEPTUNE:"neptune"},o={CARDINAL:"cardinal",FIXED:"fixed",MUTABLE:"mutable"},n={FIRE:"fire",EARTH:"earth",AIR:"air",WATER:"water"},c={POSITIVE:"positive",NEGATIVE:"negative"},u={HEAD:"head",THROAT:"throat",LUNGS:"lungs",STOMACH:"stomach",HEART:"heart",BOWELS:"bowels",REINS:"reins",SECRETS:"secrets",THIGHS:"thighs",KNEES:"knees",ANKLES:"ankles",FEET:"feet"},m={RAM:"ram",BULL:"bull",TWINS:"twins",CRAB:"crab",LION:"lion",VIRGIN:"virgin",BALANCE:"balance",SCORPION:"scorpion",ARCHER:"archer",GOAT:"goat",THE_MAN:"the-man",THE_FISHES:"the-fishes"},E={SPRING:"spring",SUMMER:"summer",AUTUMN:"autumn",WINTER:"winter"},p=["houseTitles-1","houseTitles-2","houseTitles-3","houseTitles-4","houseTitles-5","houseTitles-6","houseTitles-7","houseTitles-8","houseTitles-9","houseTitles-10","houseTitles-11","houseTitles-12"],S=["houseKeywords-1","houseKeywords-2","houseKeywords-3","houseKeywords-4","houseKeywords-5","houseKeywords-6","houseKeywords-7","houseKeywords-8","housKeywordss-9","houseKeywords-10","houseKeywords-11","houseKeywords-12"],i={LOWER:"lower",UPPER:"upper"},l={ANGULAR:"angular",SUCCEDENT:"succedent",CADENT:"cadent"};var g=[{element:n.FIRE,hemisphere:i.LOWER,keywords:S[0],number:1,phase:1,quadrant:1,rulingPlanet:s.MARS,sign:a.ARIES,title:p[0],modality:l.ANGULAR},{element:n.EARTH,hemisphere:i.LOWER,keywords:S[1],modality:l.SUCCEDENT,number:2,phase:1,quadrant:1,rulingPlanet:s.VENUS,sign:a.TAURUS,title:p[1]},{element:n.AIR,hemisphere:i.LOWER,keywords:S[2],modality:l.CADENT,number:3,phase:1,quadrant:1,rulingPlanet:s.MERCURY,sign:a.GEMINI,title:p[2]},{element:n.WATER,hemisphere:i.LOWER,keywords:S[3],modality:l.ANGULAR,number:4,phase:1,quadrant:2,rulingPlanet:s.MOON,sign:a.CANCER,title:p[3]},{element:n.FIRE,hemisphere:i.LOWER,keywords:S[4],modality:l.SUCCEDENT,number:5,phase:2,quadrant:2,rulingPlanet:s.SUN,sign:a.LEO,title:p[4]},{element:n.EARTH,hemisphere:i.LOWER,keywords:S[5],modality:l.CADENT,number:6,phase:2,quadrant:2,rulingPlanet:s.MERCURY,sign:a.VIRGO,title:p[5]},{element:n.AIR,hemisphere:i.UPPER,keywords:S[6],modality:l.ANGULAR,number:7,phase:2,quadrant:3,rulingPlanet:s.VENUS,sign:a.LIBRA,title:p[6]},{element:n.WATER,hemisphere:i.UPPER,keywords:S[7],modality:l.SUCCEDENT,number:8,phase:2,quadrant:3,rulingPlanet:s.PLUTO,sign:a.SCORPIO,title:p[7]},{element:n.FIRE,hemisphere:i.UPPER,keywords:S[8],modality:l.CADENT,number:9,phase:3,quadrant:3,rulingPlanet:s.JUPITER,sign:a.SAGITTARIUS,title:p[8]},{element:n.EARTH,hemisphere:i.UPPER,keywords:S[9],modality:l.ANGULAR,number:10,phase:3,quadrant:4,rulingPlanet:s.SATURN,sign:a.CAPRICORN,title:p[9]},{element:n.AIR,hemisphere:i.UPPER,keywords:S[10],modality:l.SUCCEDENT,number:11,phase:3,quadrant:4,rulingPlanet:s.URANUS,sign:a.AQUARIUS,title:p[10]},{element:n.WATER,hemisphere:i.UPPER,keywords:S[11],modality:l.CADENT,number:12,phase:3,quadrant:4,rulingPlanet:s.NEPTUNE,sign:a.PISCES,title:p[11]}],h=g;import V from"iso-639-1";var H={aries:"Aries",taurus:"Taurus",gemini:"Gemini",cancer:"Cancer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Scorpio",sagittarius:"Sagittarius",capricorn:"Capricorn",aquarius:"Aquarius",pisces:"Pisces",fire:"Fire",earth:"Earth",air:"Air",water:"Water",cardinal:"Cardinal",fixed:"Fixed",mutable:"Mutable",mars:"Mars",venus:"Venus",mercury:"Mercury",moon:"Moon",sun:"Sun",pluto:"Pluto",jupiter:"Jupiter",saturn:"Saturn",uranus:"Uranus",neptune:"Neptune",positive:"Positive",negative:"Negative",head:"Head",throat:"Throat",lungs:"Lungs",stomach:"Stomach",heart:"Heart",bowels:"Bowels",reins:"Reins",secrets:"Secrets",thighs:"Thighs",knees:"Knees",ankles:"Ankles",feet:"Feet",ram:"Ram",bull:"Bull",twins:"Twins",crab:"Crab",lion:"Lion",virgin:"Virgin",balance:"Balance",scorpion:"Scorpion",archer:"Archer",goat:"Goat","the-man":"The Man","the-fishes":"The Fishes",spring:"Spring",summer:"Summer",autumn:"Autumn",winter:"Winter",houseTitles:["The individual personality","Values and Possessions","Communication","Roots and Origins","Pleasure and Creativity","Work and Routine","Relating","Loss and Common Property","Philosophies and Far Countries","Occupation and Calling","Friends and Acquaintances","Beyond the Personal"],houseKeywords:[["Self-image","Identity","Impressions on others","Personality"],["Personal resources","Values","Security","Possessions"],["Surroundings","Siblings","Communication","Knowledge"],["Home","Family","The Past","Roots"],["Children","Creativity","Expression","Pleasure"],["Routines","Service","Health","Productivity"],["Partnerships","Relationships","Balance","Collaboration"],["Transformations","Crises","Beginnings","Rebirth"],["Philosophy","Travel","Openness","Wisdom"],["Public","Legacy","Career","Ambition"],["Friends","Community","Dreams","Aspirations"],["Unconscious","Fantasies","Connections","Healing"]],lower:"Lower",upper:"Upper",angular:"Angular",succedent:"Succedent",cadent:"Cadent"},C=H;var D={aries:"Aries",taurus:"Tauro",gemini:"Géminis",cancer:"Cáncer",leo:"Leo",virgo:"Virgo",libra:"Libra",scorpio:"Escorpio",sagittarius:"Sagitario",capricorn:"Capricornio",aquarius:"Acuario",pisces:"Piscis",fire:"Fuego",earth:"Tierra",air:"Aire",water:"Agua",cardinal:"Cardinal",fixed:"Fijo",mutable:"Mutable",mars:"Marte",venus:"Venus",mercury:"Mercurio",moon:"Luna",sun:"Sol",pluto:"Plutón",jupiter:"Júpiter",saturn:"Saturno",uranus:"Urano",neptune:"Neptuno",positive:"Positivo",negative:"Negativo",head:"Cabeza",throat:"Garganta",lungs:"Pulmones",stomach:"Estómago",heart:"Corazón",bowels:"Intestinos",reins:"Riñones",secrets:"Genitales",thighs:"Muslos",knees:"Rodillas",ankles:"Tobillos",feet:"Pies",ram:"Carnero",bull:"Toro",twins:"Gemelos",crab:"Cangrejo",lion:"León",virgin:"Virgen",balance:"Balanza",scorpion:"Escorpión",archer:"Arquero",goat:"Cabra","the-man":"El Hombre","the-fishes":"Los Peces",spring:"Primavera",summer:"Verano",autumn:"Otoño",winter:"Invierno",houseTitles:["La personalidad individual","Valores y Posesiones","Comunicación","Raíces y Orígenes","Placer y Creatividad","Trabajo y Rutina","Relacionarse","Pérdida y Propiedad Común","Filosofías y Países Lejanos","Ocupación y Vocación","Amigos y Conocidos","Más Allá de lo Personal"],houseKeywords:[["Autoimagen","Identidad","Impresiones en los demás","Personalidad"],["Recursos personales","Valores","Seguridad","Posesiones"],["Entorno","Hermanos","Comunicación","Conocimiento"],["Hogar","Familia","El pasado","Raíces"],["Niños","Creatividad","Expresión","Placer"],["Rutinas","Servicio","Salud","Productividad"],["Asociaciones","Relaciones","Equilibrio","Colaboración"],["Transformaciones","Crisis","Inicios","Renacimiento"],["Filosofía","Viajes","Apertura","Sabiduría"],["Público","Legado","Carrera","Ambición"],["Amigos","Comunidad","Sueños","Aspiraciones"],["Inconsciente","Fantasías","Conexiones","Sanación"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Sucedente",cadent:"Cadente"},N=D;var w={aries:"Àries",taurus:"Taure",gemini:"Bessons",cancer:"Cranc",leo:"Lleó",virgo:"Verge",libra:"Balança",scorpio:"Escorpió",sagittarius:"Sagitari",capricorn:"Capricorn",aquarius:"Aquari",pisces:"Peixos",fire:"Foc",earth:"Terra",air:"Aire",water:"Aigua",cardinal:"Cardinal",fixed:"Fix",mutable:"Mutable",mars:"Mart",venus:"Venus",mercury:"Mercuri",moon:"Lluna",sun:"Sol",pluto:"Plutó",jupiter:"Júpiter",saturn:"Saturn",uranus:"Urà",neptune:"Neptú",positive:"Positiu",negative:"Negatiu",head:"Cap",throat:"Gola",lungs:"Pulmons",stomach:"Estómac",heart:"Cor",bowels:"Intestins",reins:"Ronyons",secrets:"Genitals",thighs:"Cuixes",knees:"Genolls",ankles:"Turmells",feet:"Peus",ram:"Carner",bull:"Bou",twins:"Bessons",crab:"Cranc",lion:"Lleó",virgin:"Verge",balance:"Balança",scorpion:"Escorpí",archer:"Arquer",goat:"Cabra","the-man":"L'Home","the-fishes":"Els Peixos",spring:"Primavera",summer:"Estiu",autumn:"Tardor",winter:"Hivern",houseTitles:["La personalitat individual","Valors i possessions","Comunicació","Arrels i orígens","Plaer i creativitat","Feina i rutina","Relacionar-se","Pèrdua i propietat comuna","Filosofia i països llunyans","Ocupació i vocació","Amics i coneguts","Més enllà del personal"],houseKeywords:[["Autoimatge","Identitat","Impressions als altres","Personalitat"],["Recursos personals","Valors","Seguretat","Possessions"],["Entorn","Germans","Comunicació","Coneixement"],["Llar","Família","El passat","Arrels"],["Infants","Creativitat","Expressió","Plaer"],["Rutines","Servei","Salut","Productivitat"],["Associacions","Relacions","Equilibri","Col·laboració"],["Transformacions","Crisi","Inicis","Renaixement"],["Filosofia","Viatges","Obertura","Saviesa"],["Públic","Llegat","Carrera","Ambició"],["Amics","Comunitat","Somnis","Aspiracions"],["Inconscient","Fantasies","Connexions","Sanació"]],lower:"Inferior",upper:"Superior",angular:"Angular",succedent:"Successiva",cadent:"Cadent"},U=w;var T={en:C,es:N,ca:U};var G={aries:{bodyPart:u.HEAD,character:m.RAM,element:n.FIRE,endDate:new Date(2020,3,20),glyph:"♈",modality:o.CARDINAL,name:a.ARIES,number:1,pole:c.POSITIVE,rulingPlanet:s.MARS,season:E.SPRING,startDate:new Date(2020,2,20)},taurus:{bodyPart:u.THROAT,character:m.BULL,element:n.EARTH,endDate:new Date(2020,4,21),glyph:"♉",modality:o.FIXED,name:a.TAURUS,number:2,pole:c.NEGATIVE,rulingPlanet:s.VENUS,season:E.SPRING,startDate:new Date(2020,3,21)},gemini:{bodyPart:u.LUNGS,character:m.TWINS,element:n.AIR,endDate:new Date(2020,5,22),glyph:"♊",modality:o.MUTABLE,name:a.GEMINI,number:3,pole:c.POSITIVE,rulingPlanet:s.MERCURY,season:E.SPRING,startDate:new Date(2020,4,22)},cancer:{bodyPart:u.STOMACH,character:m.CRAB,element:n.WATER,endDate:new Date(2020,6,22),glyph:"♋",modality:o.CARDINAL,name:a.CANCER,number:4,pole:c.NEGATIVE,rulingPlanet:s.MOON,season:E.SUMMER,startDate:new Date(2020,5,23)},leo:{bodyPart:u.HEART,character:m.LION,element:n.FIRE,endDate:new Date(2020,7,22),glyph:"♌",modality:o.FIXED,name:a.LEO,number:5,pole:c.POSITIVE,rulingPlanet:s.SUN,season:E.SUMMER,startDate:new Date(2020,6,23)},virgo:{bodyPart:u.BOWELS,character:m.VIRGIN,element:n.EARTH,endDate:new Date(2020,8,22),glyph:"♍",modality:o.MUTABLE,name:a.VIRGO,number:6,pole:c.NEGATIVE,rulingPlanet:s.MERCURY,season:E.SUMMER,startDate:new Date(2020,7,23)},libra:{bodyPart:u.REINS,character:m.BALANCE,element:n.AIR,endDate:new Date(2020,9,22),glyph:"♎",modality:o.CARDINAL,name:a.LIBRA,number:7,pole:c.POSITIVE,rulingPlanet:s.VENUS,season:E.AUTUMN,startDate:new Date(2020,8,23)},scorpio:{bodyPart:u.SECRETS,character:m.SCORPION,element:n.WATER,endDate:new Date(2020,10,22),glyph:"♏",modality:o.FIXED,name:a.SCORPIO,number:8,pole:c.NEGATIVE,rulingPlanet:s.PLUTO,season:E.AUTUMN,startDate:new Date(2020,9,23)},sagittarius:{bodyPart:u.THIGHS,character:m.ARCHER,element:n.FIRE,endDate:new Date(2020,11,22),glyph:"♐",modality:o.MUTABLE,name:a.SAGITTARIUS,number:9,pole:c.POSITIVE,rulingPlanet:s.JUPITER,season:E.AUTUMN,startDate:new Date(2020,10,23)},capricorn:{bodyPart:u.KNEES,character:m.GOAT,element:n.EARTH,endDate:new Date(2021,0,21),glyph:"♑",modality:o.CARDINAL,name:a.CAPRICORN,number:10,pole:c.NEGATIVE,rulingPlanet:s.SATURN,season:E.WINTER,startDate:new Date(2020,11,23)},aquarius:{bodyPart:u.ANKLES,character:m.THE_MAN,element:n.AIR,endDate:new Date(2020,1,20),glyph:"♒",modality:o.FIXED,name:a.AQUARIUS,number:11,pole:c.POSITIVE,rulingPlanet:s.URANUS,season:E.WINTER,startDate:new Date(2020,0,22)},pisces:{bodyPart:u.FEET,character:m.THE_FISHES,element:n.WATER,endDate:new Date(2020,2,19),glyph:"♓",modality:o.MUTABLE,name:a.PISCES,number:12,pole:c.NEGATIVE,rulingPlanet:s.NEPTUNE,season:E.WINTER,startDate:new Date(2020,1,21)}},d=G;var re=V.getName;function I(e,t){let r=T[t];return{bodyPart:r[e.bodyPart],character:r[e.character],element:r[e.element],endDate:e.endDate,glyph:e.glyph,modality:r[e.modality],name:r[e.name],number:e.number,pole:r[e.pole],rulingPlanet:r[e.rulingPlanet],season:r[e.season],startDate:e.startDate}}function L(e,t,r){let A=r.getMonth()+1,R=r.getDate(),P=e.getMonth()+1,O=e.getDate(),y=t.getMonth()+1,M=t.getDate();return A===P&&R>=O||A===y&&R<=M||P>y&&(A>P||A<y)}function b(e,t){let r=T[t],[,A]=e.title.split("-"),[,R]=e.keywords.split("-");return{number:e.number,title:r.houseTitles[Number(A)-1],sign:r[e.sign],rulingPlanet:r[e.rulingPlanet],keywords:r.houseKeywords[Number(R)-1],element:r[e.element],hemisphere:r[e.hemisphere],phase:e.phase,quadrant:e.quadrant,modality:r[e.modality]}}function x(e="en"){return h.map((t)=>{return b(t,e)})}function F(e,t="en"){if(!(e instanceof Date))throw new Error("Invalid date");for(let r of Object.keys(d)){let A=d[r],{startDate:R,endDate:P}=A;if(L(R,P,e))return I(A,t)}return null}function f(e,t="en"){let r=d[e];if(!r)return null;return I(r,t)}function B(e="en"){return Object.keys(d).map((t)=>{let r={};return Object.entries(d[t]).forEach(([A,R])=>{let P=T[e][R];r[A]=P||R}),r})}export{B as getSigns,f as getSignByName,F as getSignByDate,x as getHouses,a as SIGNS,s as PLANETS,o as MODALITIES,l as HOUSE_MODALITIES,i as HEMISPHERES,n as ELEMENTS};
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "western-signs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"author": "Marc Mariné <shenobi@gmail.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/marcmarine/western-signs.git"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
+
"@biomejs/biome": "2.0.6",
|
|
10
11
|
"@semantic-release/changelog": "^6.0.3",
|
|
11
12
|
"@semantic-release/git": "^10.0.1",
|
|
12
13
|
"@types/bun": "latest",
|
|
@@ -39,7 +40,8 @@
|
|
|
39
40
|
"license": "MIT",
|
|
40
41
|
"scripts": {
|
|
41
42
|
"build": "bun build.ts",
|
|
42
|
-
"build:docs": "bunx typedoc"
|
|
43
|
+
"build:docs": "bunx typedoc",
|
|
44
|
+
"format": "biome check --write"
|
|
43
45
|
},
|
|
44
46
|
"type": "module"
|
|
45
47
|
}
|