Comparing version 1.3.2 to 1.3.3-dev.20230726
@@ -1,2 +0,2 @@ | ||
type If_StrInclude<S, SU extends string> = S extends `${string}${SU}${string}` ? true : false; | ||
import { Utils, StrRemove, If_StrInclude } from "typescript-treasure"; | ||
@@ -22,10 +22,11 @@ export type InjectDataFn<Expr> = <const Data> | ||
type StringToUnion<T extends string> = T extends `${infer Letter}${infer Rest}` ? Letter | Uppercase<Letter> | StringToUnion<Rest> : never; | ||
type VarUnion = StringToUnion<"abcdefghijklmnopqrstuvwxyz_$"> | ||
type If_IncludesVar<T> = | ||
Utils.If_IncludeVar< | ||
StrRemove< | ||
StrRemove<T, "!n">, | ||
"!e" | ||
> | ||
> | ||
type StrRemove<Str, SubStr extends string> = Str extends `${infer F}${SubStr}${infer R}` ? `${F}${R}` : Str; | ||
type If_IncludesVar<T> = T extends string ? StrRemove<StrRemove<T, "!n">, "!e"> extends `${infer F}${infer R}` ? F extends VarUnion ? true : If_IncludesVar<R> : false : false | ||
type If_NumOrStr<T> = T extends string | number ? true : false; | ||
@@ -32,0 +33,0 @@ type If_FillData<T> = T extends string | number | undefined | null ? false : true; |
{ | ||
"name": "a-calc", | ||
"version": "1.3.2", | ||
"version": "1.3.3-dev.20230726", | ||
"description": "Very powerful arbitrary precision calculation library and number formatting library", | ||
@@ -93,5 +93,7 @@ "main": "./cjs/index.cjs", | ||
"rollup-plugin-uglify": "^6.0.4", | ||
"typescript": "^5.1.6", | ||
"@type-challenges/utils": "^0.1.1" | ||
"typescript": "^5.1.6" | ||
}, | ||
"dependencies": { | ||
"typescript-treasure": "0.0.2-dev.2023.7.2601" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18
775
193518
1
1
+ Addedtypescript-treasure@0.0.2-dev.2023.7.2601(transitive)