Socket
Socket
Sign inDemoInstall

@thi.ng/api

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/api - npm Package Compare versions

Comparing version 8.9.29 to 8.9.30

2

CHANGELOG.md
# Change Log
- **Last updated**: 2024-03-09T09:18:17Z
- **Last updated**: 2024-03-13T14:04:31Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -5,0 +5,0 @@

@@ -21,3 +21,3 @@ import type { IObjectOf } from "./object.js";

* @example
* ```ts
* ```ts tangle:../export/deref.ts
* import type { DerefedKeys, IDeref } from "@thi.ng/api";

@@ -24,0 +24,0 @@ *

export interface IEquiv {
/**
* Returns `true` if this *value* is equivalent to `o`. Also see
* {@link ICompare.compare} and {@link IHash.hash}.
* [ICompare.compare](https://docs.thi.ng/umbrella/api/interfaces/ICompare.html#compare)
* and
* [IHash.hash](https://docs.thi.ng/umbrella/api/interfaces/IHash.html#hash).
*

@@ -6,0 +8,0 @@ * @param o - value to check for equivalence

{
"name": "@thi.ng/api",
"version": "8.9.29",
"version": "8.9.30",
"description": "Common, generic types, interfaces & mixins",

@@ -42,7 +42,7 @@ "type": "module",

"devDependencies": {
"@microsoft/api-extractor": "^7.40.1",
"esbuild": "^0.20.0",
"@microsoft/api-extractor": "^7.42.3",
"esbuild": "^0.20.1",
"rimraf": "^5.0.5",
"typedoc": "^0.25.7",
"typescript": "^5.3.3"
"typedoc": "^0.25.12",
"typescript": "^5.4.2"
},

@@ -230,3 +230,3 @@ "keywords": [

},
"gitHead": "69100942474942f7446ac645d59d91e7dfc352f9\n"
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
}

@@ -119,7 +119,14 @@ export type ArrayLikeIterable<T> = ArrayLike<T> & Iterable<T>;

* @example
* ```ts
* import { asNativeType } from "@thi.ng/api";
* ```ts tangle:../export/as-native-type.ts
* import { asNativeType, GLType } from "@thi.ng/api";
*
* asNativeType(GLType.F32) => "f32"
* asNativeType("f32") => "f32"
* console.log(
* asNativeType(GLType.F32)
* );
* // "f32"
*
* console.log(
* asNativeType("f32")
* );
* // "f32"
* ```

@@ -134,7 +141,14 @@ *

* @example
* ```ts
* import { asGLType } from "@thi.ng/api";
* ```ts tangle:../export/as-gl-type.ts
* import { asGLType, GLType } from "@thi.ng/api";
*
* asGLType("f32") => GLType.F32
* asGLType(GLType.F32) => GLType.F32
* console.log(
* asGLType("f32")
* );
* // 5126 (aka GLType.F32)
*
* console.log(
* asGLType(GLType.F32)
* );
* // 5126 (aka GLType.F32)
* ```

@@ -177,11 +191,15 @@ *

* @example
* ```ts
* ```ts tangle:../export/typed-array.ts
* import { typedArrayOfVec } from "@thi.ng/api";
*
* // inferred stride=2 (2d vectors)
* typedArrayOfVec("f32", [[1,2], [3,4], [-10,20]]);
* console.log(
* typedArrayOfVec("f32", [[1,2], [3,4], [-10,20]])
* );
* // Float32Array(6) [ 1, 2, 3, 4, -10, 20 ]
*
* // with custom stride=4
* typedArrayOfVec("f32", [[1,2], [3,4], [-10,20]], 4);
* console.log(
* typedArrayOfVec("f32", [[1,2], [3,4], [-10,20]], 4)
* );
* // Float32Array(12) [ 1, 2, 0, 0, 3,4, 0, 0, -10, 20, 0, 0 ]

@@ -188,0 +206,0 @@ * ```

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