New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nothing-but/utils

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nothing-but/utils - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

dist/chunk/F2TQ5ZET.js

7

CHANGELOG.md
# @nothing-but/utils
## 0.1.0
### Minor Changes
- 63679ef: Add types sumbodule
- Add `ease` submodule
## 0.0.1

@@ -4,0 +11,0 @@

6

dist/array/index.js

@@ -1,4 +0,6 @@

export { binaryInsert, binaryInsertUnique, binaryInsertWith, binarySearch, binarySearchWith, pickRandom, pickRandomExclidingOne, randomIterate, wrap } from '../chunk/6GXFIOPA.js';
export { binaryInsert, binaryInsertUnique, binaryInsertWith, binarySearch, binarySearchWith, pickRandom, pickRandomExclidingOne, randomIterate, wrap } from '../chunk/F2TQ5ZET.js';
import '../chunk/OZRPOR2F.js';
import '../chunk/I42HF3LR.js';
import '../chunk/XSSUUMZX.js';
import '../chunk/PSUTF5FZ.js';
import '../chunk/5ZKAE4VZ.js';
import '../chunk/QR25BPRP.js';
export { a as array } from '../array-dbc2c38a.js';
export { e as ease } from '../ease-8473b216.js';
export { m as math } from '../math-b7f74671.js';
export { t as trig } from '../trig-dbfc1741.js';
export { t as trig } from '../trig-0a2cca0d.js';
export { t as types } from '../types-ba0945a2.js';

@@ -1,4 +0,6 @@

export { array_exports as array } from '../chunk/6GXFIOPA.js';
export { array_exports as array } from '../chunk/F2TQ5ZET.js';
export { ease_exports as ease } from '../chunk/OZRPOR2F.js';
export { math_exports as math } from '../chunk/I42HF3LR.js';
export { trig_exports as trig } from '../chunk/XSSUUMZX.js';
export { trig_exports as trig } from '../chunk/PSUTF5FZ.js';
import '../chunk/5ZKAE4VZ.js';
export { types_exports as types } from '../chunk/QR25BPRP.js';

@@ -1,1 +0,2 @@

export { F as Force, P as Pointable, S as Segment, a as Vec, V as VecString, Z as ZERO, m as force, n as force_to_vec, v as vec, e as vec_add, l as vec_angle, d as vec_difference, k as vec_distance, i as vec_divide, b as vec_equals, g as vec_multiply, h as vec_product, j as vec_quotient, c as vec_subtract, f as vec_sum, z as zero } from '../trig-dbfc1741.js';
import '../types-ba0945a2.js';
export { F as Force, S as Segment, a as Vec, V as VecString, Z as ZERO, o as force, p as forceToVec, v as vec, e as vecAdd, l as vecAngle, d as vecDifference, k as vecDistance, i as vecDivide, b as vecEquals, g as vecMultiply, h as vecProduct, j as vecQuotient, m as vecRotate, n as vecRotateAround, c as vecSubtract, f as vecSum, z as zero } from '../trig-0a2cca0d.js';

@@ -1,2 +0,2 @@

export { Force, Vec, ZERO, force, force_to_vec, vec, vec_add, vec_angle, vec_difference, vec_distance, vec_divide, vec_equals, vec_multiply, vec_product, vec_quotient, vec_subtract, vec_sum, zero } from '../chunk/XSSUUMZX.js';
export { Force, Vec, ZERO, force, forceToVec, vec, vecAdd, vecAngle, vecDifference, vecDistance, vecDivide, vecEquals, vecMultiply, vecProduct, vecQuotient, vecRotate, vecRotateAround, vecSubtract, vecSum, zero } from '../chunk/PSUTF5FZ.js';
import '../chunk/5ZKAE4VZ.js';
{
"name": "@nothing-but/utils",
"version": "0.0.1",
"version": "0.1.0",
"license": "MIT",

@@ -32,2 +32,8 @@ "author": "Damian Tarnawski <gthetarnav@gmail.com>",

},
"./ease": {
"import": {
"types": "./dist/ease/index.d.ts",
"default": "./dist/ease/index.js"
}
},
".": {

@@ -50,2 +56,8 @@ "import": {

}
},
"./types": {
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/types/index.js"
}
}

@@ -58,2 +70,5 @@ },

],
"ease": [
"./dist/ease/index.d.ts"
],
"math": [

@@ -64,2 +79,5 @@ "./dist/math/index.d.ts"

"./dist/trig/index.d.ts"
],
"types": [
"./dist/types/index.d.ts"
]

@@ -66,0 +84,0 @@ }

export * as array from './array'
export * as ease from './ease'
export * as math from './math'
export * as trig from './trig'
export * as types from './types'

@@ -1,5 +0,2 @@

/**
* Represents a point in 2D space with x and y coordinates.
*/
export type Point = { x: number; y: number }
import type { Position } from './types'

@@ -34,5 +31,5 @@ /**

constructor(str: VecString)
constructor(vec: Point)
constructor(vec: Position)
constructor(x: number, y?: number)
constructor(x: number | VecString | Point, y?: number) {
constructor(x: number | VecString | Position, y?: number) {
if (typeof x === 'string') {

@@ -57,3 +54,3 @@ const [xStr, yStr] = x.slice(1, -1).split(', ')

}
toJSON(): Point {
toJSON(): Position {
return { x: this.x, y: this.y }

@@ -68,3 +65,3 @@ }

(str: VecString): Vec
(vec: Point): Vec
(vec: Position): Vec
(x: number, y?: number): Vec

@@ -71,0 +68,0 @@ } = (...args: [any]) => new Vec(...args)

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