@ixfx/debug 0.56.14 → 0.56.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +34 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -139,4 +139,37 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
139
139
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
140
140
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
141
141
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
142
|
-
SOFTWARE.
|
|
142
|
+
SOFTWARE.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
Package: simple-noise.js
|
|
147
|
+
https://github.com/jwagner/simplex-noise.js
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
* A fast javascript implementation of simplex noise by Jonas Wagner
|
|
151
|
+
|
|
152
|
+
Based on a speed-improved simplex noise algorithm for 2D, 3D and 4D in Java.
|
|
153
|
+
Which is based on example code by Stefan Gustavson (stegu@itn.liu.se).
|
|
154
|
+
With Optimisations by Peter Eastman (peastman@drizzle.stanford.edu).
|
|
155
|
+
Better rank ordering method by Stefan Gustavson in 2012.
|
|
156
|
+
|
|
157
|
+
Copyright (c) 2024 Jonas Wagner
|
|
158
|
+
|
|
159
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
160
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
161
|
+
in the Software without restriction, including without limitation the rights
|
|
162
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
163
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
164
|
+
furnished to do so, subject to the following conditions:
|
|
165
|
+
|
|
166
|
+
The above copyright notice and this permission notice shall be included in all
|
|
167
|
+
copies or substantial portions of the Software.
|
|
168
|
+
|
|
169
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
170
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
171
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
172
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
173
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
174
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
175
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -114,9 +114,9 @@ declare const fpsCounter: (autoDisplay?: boolean, computeAfterFrames?: number) =
|
|
|
114
114
|
//#region src/error-message.d.ts
|
|
115
115
|
/**
|
|
116
116
|
* Returns a string representation of an error
|
|
117
|
-
* @param
|
|
118
|
-
* @returns
|
|
117
|
+
* @param error
|
|
118
|
+
* @returns strign
|
|
119
119
|
*/
|
|
120
|
-
declare
|
|
120
|
+
declare function getErrorMessage(error: unknown): string;
|
|
121
121
|
//#endregion
|
|
122
122
|
export { LogKind, LogMessage, LogOption, LogSet, MessageLogger, fpsCounter, getErrorMessage, logColours, logSet, logger, resolveLogOption };
|
package/dist/index.js
CHANGED
|
@@ -169,13 +169,13 @@ const fpsCounter = (autoDisplay = true, computeAfterFrames = 500) => {
|
|
|
169
169
|
//#region src/error-message.ts
|
|
170
170
|
/**
|
|
171
171
|
* Returns a string representation of an error
|
|
172
|
-
* @param
|
|
173
|
-
* @returns
|
|
172
|
+
* @param error
|
|
173
|
+
* @returns strign
|
|
174
174
|
*/
|
|
175
|
-
|
|
176
|
-
if (typeof
|
|
177
|
-
if (
|
|
178
|
-
return
|
|
179
|
-
}
|
|
175
|
+
function getErrorMessage(error) {
|
|
176
|
+
if (typeof error === `string`) return error;
|
|
177
|
+
if (error instanceof Error) return error.message;
|
|
178
|
+
return error;
|
|
179
|
+
}
|
|
180
180
|
//#endregion
|
|
181
181
|
export { fpsCounter, getErrorMessage, logColours, logSet, logger, resolveLogOption };
|