Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

iztro

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iztro - npm Package Compare versions

Comparing version 1.2.7-alpha to 1.3.0

lib/astro/FunctionalHoroscope.d.ts

24

CHANGELOG.md

@@ -10,2 +10,26 @@ # 紫微斗数 @sylarlong/astro

## v1.3.0
- 🪄 功能(feature)
🇨🇳
- 创建FunctionalHoroscope类 #31
🇺🇸
- create FunctionalHoroscope class #31
## v1.2.7-alpha
- ✨ 改进(enhancement)
🇨🇳
- 使用dayjs提高产品兼容性 #59
🇺🇸
- use dayjs to improve compatibility #56
## v1.2.6

@@ -12,0 +36,0 @@

3

lib/astro/FunctionalAstrolabe.d.ts

@@ -6,2 +6,3 @@ import { Astrolabe, Horoscope } from '../data/types';

import { IFunctionalSurpalaces } from './FunctionalSurpalaces';
import FunctionalHoroscope from './FunctionalHoroscope';
/**

@@ -109,3 +110,3 @@ * 星盘类接口定义。

star: (starName: StarName) => IFunctionalStar;
horoscope: (targetDate?: string | Date, timeIndexOfTarget?: number) => Horoscope;
horoscope: (targetDate?: string | Date, timeIndexOfTarget?: number) => FunctionalHoroscope;
palace: (indexOrName: number | PalaceName) => IFunctionalPalace | undefined;

@@ -112,0 +113,0 @@ surroundedPalaces: (indexOrName: number | PalaceName) => IFunctionalSurpalaces;

@@ -23,2 +23,3 @@ "use strict";

var palace_1 = require("./palace");
var FunctionalHoroscope_1 = __importDefault(require("./FunctionalHoroscope"));
/**

@@ -146,3 +147,3 @@ * 获取运限数据

};
return scope;
return new FunctionalHoroscope_1.default(scope, $);
};

@@ -149,0 +150,0 @@ /**

@@ -12,5 +12,5 @@ import { CHINESE_TIME, LANGUAGES, TIME_RANGE } from '../constants';

export type TimeRange = (typeof TIME_RANGE)[number];
/** 范围:本命|大限|流年 */
export type Scope = 'origin' | 'decadal' | 'yearly';
/** 范围:本命|大限|流年|流月|流日|流时 */
export type Scope = 'origin' | 'decadal' | 'yearly' | 'monthly' | 'daily' | 'hourly';
/** 星耀类型 */
export type StarType = 'major' | 'soft' | 'tough' | 'adjective' | 'flower' | 'helper' | 'lucun' | 'tianma';
declare const _default: {
male: "Nam";
female: "Nữ";
soulPalace: "Cung Mệnh";
bodyPalace: "Cung Thân";
soulPalace: "Mệnh";
bodyPalace: "Thân";
siblingsPalace: "Huynh Đệ";

@@ -36,3 +36,3 @@ spousePalace: "Phu Thê";

wenquMin: "Văn Khúc";
lucunMin: "Lục Tồn";
lucunMin: "Lộc Tồn";
tianmaMin: "Thiên Mã";

@@ -68,3 +68,3 @@ qingyangMin: "Kình Dương";

tianyue: "Thiên Nguyệt";
santai: "Tam Đài";
santai: "Tam Thai";
bazuo: "Bát Tọa";

@@ -71,0 +71,0 @@ engguang: "Ân Quang";

declare const _default: {
readonly soulPalace: "Cung Mệnh";
readonly bodyPalace: "Cung Thân";
readonly soulPalace: "Mệnh";
readonly bodyPalace: "Thân";
readonly siblingsPalace: "Huynh Đệ";

@@ -5,0 +5,0 @@ readonly spousePalace: "Phu Thê";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
soulPalace: 'Cung Mệnh',
bodyPalace: 'Cung Thân',
soulPalace: 'Mệnh',
bodyPalace: 'Thân',
siblingsPalace: 'Huynh Đệ',

@@ -7,0 +7,0 @@ spousePalace: 'Phu Thê',

@@ -20,3 +20,3 @@ declare const _default: {

readonly wenquMin: "Văn Khúc";
readonly lucunMin: "Lục Tồn";
readonly lucunMin: "Lộc Tồn";
readonly tianmaMin: "Thiên Mã";

@@ -52,3 +52,3 @@ readonly qingyangMin: "Kình Dương";

readonly tianyue: "Thiên Nguyệt";
readonly santai: "Tam Đài";
readonly santai: "Tam Thai";
readonly bazuo: "Bát Tọa";

@@ -55,0 +55,0 @@ readonly engguang: "Ân Quang";

@@ -22,3 +22,3 @@ "use strict";

wenquMin: 'Văn Khúc',
lucunMin: 'Lục Tồn',
lucunMin: 'Lộc Tồn',
tianmaMin: 'Thiên Mã',

@@ -54,3 +54,3 @@ qingyangMin: 'Kình Dương',

tianyue: 'Thiên Nguyệt',
santai: 'Tam Đài',
santai: 'Tam Thai',
bazuo: 'Bát Tọa',

@@ -57,0 +57,0 @@ engguang: 'Ân Quang',

{
"name": "iztro",
"version": "1.2.7-alpha",
"version": "1.3.0",
"description": "轻量级紫微斗数星盘生成库。可以通过出生年月日获取到紫微斗数星盘信息、生肖、星座等信息。A lightweight kit to astrolabe generator of The Purple Star Astrology (Zi Wei Dou Shu). The Purple Star Astrology(Zi Wei Dou Shu) is a Chinese ancient astrology. You're able to get your horoscope and personality from the astrolabe",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc