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

a-calc

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a-calc - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3-dev.20230726

15

calc.d.ts

@@ -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"
}
}
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