modelence 0.1.0 → 0.1.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/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ Copyright (c) 2024 Modelence
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to use,
5
+ copy, modify, and/or merge copies of the Software, and to permit persons to whom
6
+ the Software is furnished to do so, subject to the following conditions:
7
+
8
+ 1. The Software may not be used for commercial purposes without explicit
9
+ written permission from Modelence.
10
+
11
+ 2. The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ 3. Redistributions of the Software must retain this license terms and may not
15
+ be sold without explicit written permission from Modelence.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
@@ -1 +1,2 @@
1
- var t=Object.create;var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var i=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports);var b=(s,e,n,M)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of m(e))!d.call(s,o)&&o!==n&&u(s,o,{get:()=>e[o],enumerable:!(M=c(e,o))||M.enumerable});return s};var a=(s,e,n)=>(n=s!=null?t(r(s)):{},b(e||!s||!s.__esModule?u(n,"default",{value:s,enumerable:!0}):n,s));var y={seconds:s=>s*1e3,minutes:s=>s*6e4,hours:s=>s*36e5,days:s=>s*864e5,weeks:s=>s*6048e5};export{i as a,a as b,y as c};
1
+ var t=Object.create;var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var r=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var i=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports);var b=(s,e,n,M)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of m(e))!d.call(s,o)&&o!==n&&u(s,o,{get:()=>e[o],enumerable:!(M=c(e,o))||M.enumerable});return s};var a=(s,e,n)=>(n=s!=null?t(r(s)):{},b(e||!s||!s.__esModule?u(n,"default",{value:s,enumerable:!0}):n,s));var y={seconds:s=>s*1e3,minutes:s=>s*6e4,hours:s=>s*36e5,days:s=>s*864e5,weeks:s=>s*6048e5};export{i as a,a as b,y as c};//# sourceMappingURL=chunk-ESWIAHZY.js.map
2
+ //# sourceMappingURL=chunk-ESWIAHZY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../time.ts"],"names":["time","x"],"mappings":"ygBAMaA,IAAAA,CAAAA,CAAO,CAClB,OAAUC,CAAAA,CAAAA,EAAcA,EAAI,GAC5B,CAAA,OAAA,CAAUA,GAAcA,CAAI,CAAA,GAAA,CAC5B,MAAQA,CAAcA,EAAAA,CAAAA,CAAI,KAC1B,IAAOA,CAAAA,CAAAA,EAAcA,EAAI,KACzB,CAAA,KAAA,CAAQA,CAAcA,EAAAA,CAAAA,CAAI,MAC5B","file":"chunk-ESWIAHZY.js","sourcesContent":["const secondMs = 1000;\nconst minuteMs = 60 * secondMs;\nconst hourMs = 60 * minuteMs;\nconst dayMs = 24 * hourMs;\nconst weekMs = 7 * dayMs;\n\nexport const time = {\n seconds: (x: number) => x * secondMs,\n minutes: (x: number) => x * minuteMs,\n hours: (x: number) => x * hourMs,\n days: (x: number) => x * dayMs,\n weeks: (x: number) => x * weekMs,\n}\n"]}