@magmacomputing/tempo-plugin-astro 1.0.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/LICENSE ADDED
@@ -0,0 +1,6 @@
1
+ Copyright (c) 2026 Magma Computing Solutions. All rights reserved.
2
+
3
+ This software is provided "as-is" under a proprietary license.
4
+ Usage of this software requires an active, valid commercial license key obtained directly from Magma Computing Solutions.
5
+
6
+ You may not modify, publish, transmit, participate in the transfer or sale of, reproduce, create derivative works from, distribute, perform, display, or in any way exploit, any of the content, software, materials, or Services, in whole or in part, without the express written permission of Magma Computing Solutions.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # @magmacomputing/tempo-plugin-astro
2
+
3
+ This is a premium plugin for the [Tempo](https://github.com/magmacomputing/magma) library that provides precise astronomical events (Equinoxes and Solstices) and maps them to traditional season names based on hemisphere.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @magmacomputing/tempo-plugin-astro
9
+ ```
10
+
11
+ *Note: This plugin requires `@magmacomputing/tempo` version `2.10.0` or higher.*
12
+
13
+ ## Usage
14
+
15
+ Simply import the plugin to automatically register it with your Tempo runtime.
16
+
17
+ ```typescript
18
+ import { Tempo } from '@magmacomputing/tempo';
19
+ import '@magmacomputing/tempo-plugin-astro'; // Auto-registers AstroTerm
20
+
21
+ // A valid premium license token is required to use this plugin
22
+ Tempo.init({ license: 'YOUR_LICENSE_TOKEN' });
23
+
24
+ const t = new Tempo('2026-03-20');
25
+
26
+ // Get the Astronomical Event mapping
27
+ console.log(t.term.astro);
28
+ // Output: 'Vernal'
29
+ ```
30
+
31
+ ### Response Payload
32
+
33
+ When resolving the term, the plugin intelligently returns the correct astronomical event and its corresponding traditional season based on your configured hemisphere (`sphere`):
34
+
35
+ ```javascript
36
+ {
37
+ key: 'Vernal',
38
+ season: 'Spring', // Flips to 'Autumn' if sphere is set to 'south'
39
+ sphere: 'north',
40
+ type: 'Equinox',
41
+ group: 'astronomy',
42
+ year: 2026,
43
+ month: 3,
44
+ // ...
45
+ }
46
+ ```
47
+
48
+ ## Licensing
49
+
50
+ This is a **Premium** plugin. Usage requires an active, cryptographically signed Tempo license token with the `astro` scope enabled.
51
+
52
+ For commercial licensing options, please contact Magma Computing.
@@ -0,0 +1,11 @@
1
+ import { Tempo } from '@magmacomputing/tempo/core';
2
+ /**
3
+ * ## AstroTerm
4
+ * Exposes precise astronomical calculations as a standard Tempo scope.
5
+ */
6
+ export declare const AstroTerm: {
7
+ key: string;
8
+ scope: string;
9
+ resolve(this: Tempo, anchor?: any): any[];
10
+ define(this: Tempo, keyOnly?: boolean, anchor?: any): any;
11
+ };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';const a0_0x229e23=a0_0x41a1;(function(_0x313cec,_0x281f1f){const _0x18c593=a0_0x41a1,_0x2210f8=_0x313cec();while(!![]){try{const _0x200c87=-parseInt(_0x18c593(0x126))/0x1+-parseInt(_0x18c593(0x11a))/0x2+-parseInt(_0x18c593(0x10a))/0x3*(-parseInt(_0x18c593(0x10c))/0x4)+parseInt(_0x18c593(0x106))/0x5*(-parseInt(_0x18c593(0x10f))/0x6)+parseInt(_0x18c593(0x129))/0x7*(parseInt(_0x18c593(0x114))/0x8)+parseInt(_0x18c593(0x105))/0x9+parseInt(_0x18c593(0x112))/0xa*(parseInt(_0x18c593(0x12e))/0xb);if(_0x200c87===_0x281f1f)break;else _0x2210f8['push'](_0x2210f8['shift']());}catch(_0x297158){_0x2210f8['push'](_0x2210f8['shift']());}}}(a0_0x2e64,0x969d1));function a0_0x2e64(){const _0xb9fd80=['Autumn','find','getOwnPropertyNames','month','call','nanosecond','Winter','792100LMQbfX','key','@magmacomputing/tempo/core','7bvQpRa','astronomy','function','getTermRange','prototype','506ZUZEkF','microsecond','Equinox','South','with','minute','Tempo','exports','hasOwnProperty','hour','Summer','year','extend','autumnal','map','enumerable','5676777HUrhpy','1019365stAHZL','toDateTime','@magmacomputing/tempo/enums','winter','1179426nkdMdx','Solstice','4UIWjuZ','__esModule','Autumnal','18vnzSdq','object','millisecond','367840paIRnt','Spring','3666808rUvqnj','timeZoneId','COMPASS','vernal','push','summer','2307356FrmOky','UTC','day','trunc','defineProperty'];a0_0x2e64=function(){return _0xb9fd80;};return a0_0x2e64();}var __defProp=Object[a0_0x229e23(0x11e)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__getOwnPropNames=Object[a0_0x229e23(0x121)],__hasOwnProp=Object[a0_0x229e23(0x12d)][a0_0x229e23(0x136)],__export=(_0x4defd9,_0x2a97d6)=>{for(var _0x86da1c in _0x2a97d6)__defProp(_0x4defd9,_0x86da1c,{'get':_0x2a97d6[_0x86da1c],'enumerable':!![]});},__copyProps=(_0x3ad6a6,_0x50807b,_0xf0ec5f,_0x46d0c1)=>{const _0xcfa2e6=a0_0x229e23;if(_0x50807b&&typeof _0x50807b===_0xcfa2e6(0x110)||typeof _0x50807b===_0xcfa2e6(0x12b)){for(let _0x304bf7 of __getOwnPropNames(_0x50807b))if(!__hasOwnProp[_0xcfa2e6(0x123)](_0x3ad6a6,_0x304bf7)&&_0x304bf7!==_0xf0ec5f)__defProp(_0x3ad6a6,_0x304bf7,{'get':()=>_0x50807b[_0x304bf7],'enumerable':!(_0x46d0c1=__getOwnPropDesc(_0x50807b,_0x304bf7))||_0x46d0c1[_0xcfa2e6(0x104)]});}return _0x3ad6a6;},__toCommonJS=_0x184159=>__copyProps(__defProp({},a0_0x229e23(0x10d),{'value':!![]}),_0x184159),index_exports={};__export(index_exports,{'AstroTerm':()=>AstroTerm}),module[a0_0x229e23(0x135)]=__toCommonJS(index_exports);function a0_0x41a1(_0x31416f,_0x2cd0bc){_0x31416f=_0x31416f-0x104;const _0x2e6478=a0_0x2e64();let _0x41a125=_0x2e6478[_0x31416f];return _0x41a125;}var import_term=require('@magmacomputing/tempo/term'),import_enums=require(a0_0x229e23(0x108)),import_core=require(a0_0x229e23(0x128));function calculateAstroMoment(_0x38466e,_0x1a27e3,_0x2f8c58){const _0x1eaccc=a0_0x229e23,_0xb59081=(_0x38466e-0x7d0)/0x3e8;let _0x277449;switch(_0x1a27e3){case _0x1eaccc(0x117):_0x277449=2451623.80984+365242.37404*_0xb59081+0.05169*_0xb59081*_0xb59081;break;case'summer':_0x277449=2451716.56767+365241.62603*_0xb59081+0.00325*_0xb59081*_0xb59081;break;case _0x1eaccc(0x13b):_0x277449=2451810.21715+365242.01767*_0xb59081-0.11575*_0xb59081*_0xb59081;break;case _0x1eaccc(0x109):_0x277449=2451900.05952+365242.74049*_0xb59081-0.06223*_0xb59081*_0xb59081;break;}const _0x57f87e=Math[_0x1eaccc(0x11d)]((_0x277449-2440587.5)*0x5265c00);return new import_core['Tempo'](_0x57f87e,{'timeZone':_0x2f8c58,'timeStamp':'ms'});}function resolve(_0x12a9f6,_0x1d8684){const _0x514df6=a0_0x229e23,_0x1ab87b=_0x12a9f6['config']['sphere'];if(!_0x1ab87b)return[];const _0x394f87=_0x1d8684?.['yy']??_0x1d8684?.['year']??_0x12a9f6['yy'],_0x138092=_0x1d8684?.[_0x514df6(0x115)]??_0x12a9f6['tz']??_0x514df6(0x11b),_0xc4f305=[],_0x1edd27=_0x1ab87b===import_enums[_0x514df6(0x116)]['South']?{'vernal':_0x514df6(0x10e),'summer':_0x514df6(0x125),'autumnal':'Vernal','winter':_0x514df6(0x138)}:{'vernal':'Vernal','summer':_0x514df6(0x138),'autumnal':_0x514df6(0x10e),'winter':_0x514df6(0x125)},_0x144b52=_0x1ab87b===import_enums['COMPASS'][_0x514df6(0x131)]?{'vernal':_0x514df6(0x11f),'summer':_0x514df6(0x125),'autumnal':_0x514df6(0x113),'winter':_0x514df6(0x138)}:{'vernal':'Spring','summer':_0x514df6(0x138),'autumnal':'Autumn','winter':'Winter'};for(const _0x19d78e of[_0x394f87-0x1,_0x394f87,_0x394f87+0x1]){const _0x2b3561=(_0x27c8d0,_0x29e5f0)=>{const _0x5128c6=_0x514df6,_0x28c028=calculateAstroMoment(_0x27c8d0,_0x29e5f0,_0x138092),_0x1f53d0=_0x28c028['toDateTime']();return{'year':_0x1f53d0[_0x5128c6(0x139)],'month':_0x1f53d0[_0x5128c6(0x122)],'day':_0x1f53d0[_0x5128c6(0x11c)],'hour':_0x1f53d0[_0x5128c6(0x137)],'minute':_0x1f53d0[_0x5128c6(0x133)],'second':_0x1f53d0['second'],'millisecond':_0x1f53d0[_0x5128c6(0x111)],'microsecond':_0x1f53d0[_0x5128c6(0x12f)],'nanosecond':_0x1f53d0[_0x5128c6(0x124)]};};_0xc4f305[_0x514df6(0x118)]({'key':_0x1edd27[_0x514df6(0x117)],'season':_0x144b52[_0x514df6(0x117)],'sphere':_0x1ab87b,..._0x2b3561(_0x19d78e,_0x514df6(0x117)),'type':_0x514df6(0x130),'group':_0x514df6(0x12a)}),_0xc4f305['push']({'key':_0x1edd27[_0x514df6(0x119)],'season':_0x144b52[_0x514df6(0x119)],'sphere':_0x1ab87b,..._0x2b3561(_0x19d78e,'summer'),'type':'Solstice','group':_0x514df6(0x12a)}),_0xc4f305[_0x514df6(0x118)]({'key':_0x1edd27['autumnal'],'season':_0x144b52[_0x514df6(0x13b)],'sphere':_0x1ab87b,..._0x2b3561(_0x19d78e,_0x514df6(0x13b)),'type':_0x514df6(0x130),'group':_0x514df6(0x12a)}),_0xc4f305[_0x514df6(0x118)]({'key':_0x1edd27[_0x514df6(0x109)],'season':_0x144b52[_0x514df6(0x109)],'sphere':_0x1ab87b,..._0x2b3561(_0x19d78e,_0x514df6(0x109)),'type':_0x514df6(0x10b),'group':_0x514df6(0x12a)});}return _0xc4f305;}function resolveDateBoundary(_0x5b25d2,_0x462a28){const _0x19ae93=a0_0x229e23,_0x49219c=resolve(_0x5b25d2,_0x462a28);return _0x49219c[_0x19ae93(0x13c)](_0x51c395=>({..._0x51c395,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0,'microsecond':0x0,'nanosecond':0x0}));}var AstroTerm=(0x0,import_term['definePremiumTerm'])({'key':'astro','scope':a0_0x229e23(0x12a),'resolve'(_0x1ab178){return resolve(this,_0x1ab178);},'define'(_0x4d6b46,_0x1304f2){const _0x26722b=a0_0x229e23,_0x2a1bd1=resolve(this,_0x1304f2),_0x59584e=resolveDateBoundary(this,_0x1304f2),_0x183b0f=_0x1304f2??this[_0x26722b(0x107)]();if(_0x4d6b46===!![]||_0x4d6b46===void 0x0){const _0x2f0320=(0x0,import_term[_0x26722b(0x12c)])(this,_0x59584e,!![],_0x1304f2);return _0x2f0320;}const _0x449268=(0x0,import_term[_0x26722b(0x12c)])(this,_0x2a1bd1,![],_0x1304f2);if(!_0x449268)return _0x449268;const _0x3d5386=(0x0,import_term[_0x26722b(0x12c)])(this,_0x59584e,![],_0x1304f2);if(!_0x3d5386)return _0x449268;const _0x5dd193=_0x2a1bd1[_0x26722b(0x120)](_0x2c4f7d=>_0x2c4f7d[_0x26722b(0x127)]===_0x3d5386[_0x26722b(0x127)]&&_0x2c4f7d[_0x26722b(0x139)]===_0x3d5386[_0x26722b(0x139)]&&_0x2c4f7d[_0x26722b(0x122)]===_0x3d5386[_0x26722b(0x122)]&&_0x2c4f7d['day']===_0x3d5386[_0x26722b(0x11c)]);if(!_0x5dd193)return{..._0x3d5386,'strict':_0x449268[_0x26722b(0x127)]};const _0x1fb4a7=_0x183b0f[_0x26722b(0x132)]({'year':_0x5dd193['year'],'month':_0x5dd193['month'],'day':_0x5dd193['day'],'hour':_0x5dd193[_0x26722b(0x137)]??0x0,'minute':_0x5dd193[_0x26722b(0x133)]??0x0,'second':_0x5dd193['second']??0x0,'millisecond':_0x5dd193[_0x26722b(0x111)]??0x0,'microsecond':_0x5dd193[_0x26722b(0x12f)]??0x0,'nanosecond':_0x5dd193[_0x26722b(0x124)]??0x0})['add']({'minutes':0x1}),_0x30287b=(0x0,import_term[_0x26722b(0x12c)])(this,_0x2a1bd1,![],_0x1fb4a7);if(!_0x30287b)return{..._0x3d5386,'strict':_0x449268['key']};return{..._0x30287b,'strict':_0x449268['key']};}});import_core[a0_0x229e23(0x134)][a0_0x229e23(0x13a)](AstroTerm),0x0&&(module[a0_0x229e23(0x135)]={'AstroTerm':AstroTerm});
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ const a0_0x79fe2d=a0_0x3b7b;(function(_0x3dd773,_0x38c348){const _0xa2f0be=a0_0x3b7b,_0x743d70=_0x3dd773();while(!![]){try{const _0x138a66=-parseInt(_0xa2f0be(0x1d5))/0x1*(-parseInt(_0xa2f0be(0x1bc))/0x2)+parseInt(_0xa2f0be(0x1c2))/0x3*(parseInt(_0xa2f0be(0x1c0))/0x4)+parseInt(_0xa2f0be(0x1c6))/0x5*(-parseInt(_0xa2f0be(0x1d7))/0x6)+-parseInt(_0xa2f0be(0x1bb))/0x7+parseInt(_0xa2f0be(0x1dc))/0x8+parseInt(_0xa2f0be(0x1c3))/0x9+-parseInt(_0xa2f0be(0x1b6))/0xa;if(_0x138a66===_0x38c348)break;else _0x743d70['push'](_0x743d70['shift']());}catch(_0x4a9f08){_0x743d70['push'](_0x743d70['shift']());}}}(a0_0x378a,0x83c58));import{definePremiumTerm,getTermRange}from'@magmacomputing/tempo/term';import{COMPASS}from'@magmacomputing/tempo/enums';import{Tempo}from'@magmacomputing/tempo/core';function calculateAstroMoment(_0x29d92f,_0x6e0403,_0x56d8a4){const _0x480249=a0_0x3b7b,_0x317c50=(_0x29d92f-0x7d0)/0x3e8;let _0x48c843;switch(_0x6e0403){case _0x480249(0x1b7):_0x48c843=2451623.80984+365242.37404*_0x317c50+0.05169*_0x317c50*_0x317c50;break;case _0x480249(0x1c8):_0x48c843=2451716.56767+365241.62603*_0x317c50+0.00325*_0x317c50*_0x317c50;break;case _0x480249(0x1d9):_0x48c843=2451810.21715+365242.01767*_0x317c50-0.11575*_0x317c50*_0x317c50;break;case _0x480249(0x1d3):_0x48c843=2451900.05952+365242.74049*_0x317c50-0.06223*_0x317c50*_0x317c50;break;}const _0x385a7c=Math['trunc']((_0x48c843-2440587.5)*0x5265c00);return new Tempo(_0x385a7c,{'timeZone':_0x56d8a4,'timeStamp':'ms'});}function a0_0x3b7b(_0x4176f0,_0x1c0b0c){_0x4176f0=_0x4176f0-0x1b1;const _0x378a28=a0_0x378a();let _0x3b7bfc=_0x378a28[_0x4176f0];return _0x3b7bfc;}function a0_0x378a(){const _0x298067=['6043478xPAFZS','1000YyrjIz','Equinox','with','astro','152gixyAJ','hour','61167IiYSiK','9150732XhXchx','astronomy','key','40PEpntt','config','summer','minute','extend','Solstice','map','find','Winter','Autumnal','nanosecond','millisecond','South','winter','month','2143yOwCBY','day','581070TGWCce','push','autumnal','Vernal','microsecond','4679240xmgwBa','UTC','sphere','second','Summer','toDateTime','12700850LhxsXR','vernal','year','Autumn','Spring'];a0_0x378a=function(){return _0x298067;};return a0_0x378a();}function resolve(_0x5c1148,_0x5b3350){const _0x4fe78a=a0_0x3b7b,_0x1ebf83=_0x5c1148[_0x4fe78a(0x1c7)][_0x4fe78a(0x1b2)];if(!_0x1ebf83)return[];const _0x8ff4d4=_0x5b3350?.['yy']??_0x5b3350?.[_0x4fe78a(0x1b8)]??_0x5c1148['yy'],_0x257a83=_0x5b3350?.['timeZoneId']??_0x5c1148['tz']??_0x4fe78a(0x1b1),_0x594abf=[],_0x48953d=_0x1ebf83===COMPASS['South']?{'vernal':_0x4fe78a(0x1cf),'summer':_0x4fe78a(0x1ce),'autumnal':_0x4fe78a(0x1da),'winter':_0x4fe78a(0x1b4)}:{'vernal':'Vernal','summer':'Summer','autumnal':_0x4fe78a(0x1cf),'winter':'Winter'},_0x19addb=_0x1ebf83===COMPASS[_0x4fe78a(0x1d2)]?{'vernal':_0x4fe78a(0x1b9),'summer':_0x4fe78a(0x1ce),'autumnal':_0x4fe78a(0x1ba),'winter':_0x4fe78a(0x1b4)}:{'vernal':_0x4fe78a(0x1ba),'summer':'Summer','autumnal':_0x4fe78a(0x1b9),'winter':'Winter'};for(const _0x112db9 of[_0x8ff4d4-0x1,_0x8ff4d4,_0x8ff4d4+0x1]){const _0x522408=(_0x17b865,_0x471491)=>{const _0x418832=_0x4fe78a,_0x49a0fc=calculateAstroMoment(_0x17b865,_0x471491,_0x257a83),_0x56ceed=_0x49a0fc[_0x418832(0x1b5)]();return{'year':_0x56ceed[_0x418832(0x1b8)],'month':_0x56ceed['month'],'day':_0x56ceed['day'],'hour':_0x56ceed['hour'],'minute':_0x56ceed[_0x418832(0x1c9)],'second':_0x56ceed[_0x418832(0x1b3)],'millisecond':_0x56ceed[_0x418832(0x1d1)],'microsecond':_0x56ceed[_0x418832(0x1db)],'nanosecond':_0x56ceed[_0x418832(0x1d0)]};};_0x594abf[_0x4fe78a(0x1d8)]({'key':_0x48953d[_0x4fe78a(0x1b7)],'season':_0x19addb['vernal'],'sphere':_0x1ebf83,..._0x522408(_0x112db9,_0x4fe78a(0x1b7)),'type':_0x4fe78a(0x1bd),'group':'astronomy'}),_0x594abf[_0x4fe78a(0x1d8)]({'key':_0x48953d[_0x4fe78a(0x1c8)],'season':_0x19addb['summer'],'sphere':_0x1ebf83,..._0x522408(_0x112db9,_0x4fe78a(0x1c8)),'type':_0x4fe78a(0x1cb),'group':_0x4fe78a(0x1c4)}),_0x594abf[_0x4fe78a(0x1d8)]({'key':_0x48953d[_0x4fe78a(0x1d9)],'season':_0x19addb[_0x4fe78a(0x1d9)],'sphere':_0x1ebf83,..._0x522408(_0x112db9,'autumnal'),'type':_0x4fe78a(0x1bd),'group':_0x4fe78a(0x1c4)}),_0x594abf[_0x4fe78a(0x1d8)]({'key':_0x48953d[_0x4fe78a(0x1d3)],'season':_0x19addb[_0x4fe78a(0x1d3)],'sphere':_0x1ebf83,..._0x522408(_0x112db9,_0x4fe78a(0x1d3)),'type':_0x4fe78a(0x1cb),'group':'astronomy'});}return _0x594abf;}function resolveDateBoundary(_0x50c271,_0x1146c0){const _0x20eac4=a0_0x3b7b,_0x55e50c=resolve(_0x50c271,_0x1146c0);return _0x55e50c[_0x20eac4(0x1cc)](_0x939a6a=>({..._0x939a6a,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0,'microsecond':0x0,'nanosecond':0x0}));}var AstroTerm=definePremiumTerm({'key':a0_0x79fe2d(0x1bf),'scope':'astronomy','resolve'(_0x5a83e8){return resolve(this,_0x5a83e8);},'define'(_0x17bde8,_0x525c86){const _0x55fb52=a0_0x79fe2d,_0x31e613=resolve(this,_0x525c86),_0x2593f0=resolveDateBoundary(this,_0x525c86),_0x5e4e1c=_0x525c86??this['toDateTime']();if(_0x17bde8===!![]||_0x17bde8===void 0x0){const _0x17fbfd=getTermRange(this,_0x2593f0,!![],_0x525c86);return _0x17fbfd;}const _0x20c3c6=getTermRange(this,_0x31e613,![],_0x525c86);if(!_0x20c3c6)return _0x20c3c6;const _0x58827b=getTermRange(this,_0x2593f0,![],_0x525c86);if(!_0x58827b)return _0x20c3c6;const _0x1de3b8=_0x31e613[_0x55fb52(0x1cd)](_0x2a4b83=>_0x2a4b83[_0x55fb52(0x1c5)]===_0x58827b['key']&&_0x2a4b83[_0x55fb52(0x1b8)]===_0x58827b['year']&&_0x2a4b83[_0x55fb52(0x1d4)]===_0x58827b[_0x55fb52(0x1d4)]&&_0x2a4b83[_0x55fb52(0x1d6)]===_0x58827b[_0x55fb52(0x1d6)]);if(!_0x1de3b8)return{..._0x58827b,'strict':_0x20c3c6[_0x55fb52(0x1c5)]};const _0x50dffc=_0x5e4e1c[_0x55fb52(0x1be)]({'year':_0x1de3b8[_0x55fb52(0x1b8)],'month':_0x1de3b8[_0x55fb52(0x1d4)],'day':_0x1de3b8[_0x55fb52(0x1d6)],'hour':_0x1de3b8[_0x55fb52(0x1c1)]??0x0,'minute':_0x1de3b8[_0x55fb52(0x1c9)]??0x0,'second':_0x1de3b8[_0x55fb52(0x1b3)]??0x0,'millisecond':_0x1de3b8[_0x55fb52(0x1d1)]??0x0,'microsecond':_0x1de3b8[_0x55fb52(0x1db)]??0x0,'nanosecond':_0x1de3b8['nanosecond']??0x0})['add']({'minutes':0x1}),_0x5d0409=getTermRange(this,_0x31e613,![],_0x50dffc);if(!_0x5d0409)return{..._0x58827b,'strict':_0x20c3c6['key']};return{..._0x5d0409,'strict':_0x20c3c6[_0x55fb52(0x1c5)]};}});Tempo[a0_0x79fe2d(0x1ca)](AstroTerm);export{AstroTerm};
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@magmacomputing/tempo-plugin-astro",
3
+ "version": "1.0.0",
4
+ "description": "Tempo plugin for astronomical seasons",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "license": "Proprietary",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "publishConfig": {
12
+ "access": "public",
13
+ "registry": "https://registry.npmjs.org/"
14
+ },
15
+ "scripts": {
16
+ "build": "tsup src/index.ts --format esm,cjs --clean && tsc",
17
+ "postbuild": "javascript-obfuscator dist/index.js --output dist/index.js && javascript-obfuscator dist/index.mjs --output dist/index.mjs",
18
+ "test": "vitest run",
19
+ "publish": "npm publish --access public",
20
+ "prepublishOnly": "if [ $(git rev-parse --abbrev-ref HEAD) != main ]; then echo 'ERROR: Must be on main branch to publish.'; exit 1; fi && npm run build"
21
+ },
22
+ "peerDependencies": {
23
+ "@magmacomputing/tempo": "^2.10.0"
24
+ }
25
+ }