From 9004d2ef18795bffb6df01fd52e4fa4517f83a30 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Sun, 5 Sep 2021 17:40:19 +0900 Subject: [PATCH] Rename --- src/DataView.mjs | 2 +- src/Float16Array.mjs | 2 +- src/helper/{lib.mjs => converter.mjs} | 0 src/hfround.mjs | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/helper/{lib.mjs => converter.mjs} (100%) diff --git a/src/DataView.mjs b/src/DataView.mjs index b63271d6..a3467bfe 100644 --- a/src/DataView.mjs +++ b/src/DataView.mjs @@ -1,5 +1,5 @@ +import { convertToNumber, roundToFloat16Bits } from "./helper/converter.mjs"; import { isDataView } from "./helper/is.mjs"; -import { convertToNumber, roundToFloat16Bits } from "./helper/lib.mjs"; /** * returns an unsigned 16-bit float at the specified byte offset from the start of the DataView. diff --git a/src/Float16Array.mjs b/src/Float16Array.mjs index c03705bc..f02718f7 100644 --- a/src/Float16Array.mjs +++ b/src/Float16Array.mjs @@ -1,6 +1,6 @@ import { wrapInArrayIterator } from "./helper/arrayIterator.mjs"; +import { convertToNumber, roundToFloat16Bits } from "./helper/converter.mjs"; import { isArrayBuffer, isCanonicalIntegerIndexString, isIterable, isObject, isObjectLike, isOrdinaryArray, isSharedArrayBuffer, isTypedArray, isUint16Array } from "./helper/is.mjs"; -import { convertToNumber, roundToFloat16Bits } from "./helper/lib.mjs"; import { createPrivateStorage } from "./helper/private.mjs"; import { LengthOfArrayLike, SpeciesConstructor, ToIntegerOrInfinity, defaultCompare } from "./helper/spec.mjs"; diff --git a/src/helper/lib.mjs b/src/helper/converter.mjs similarity index 100% rename from src/helper/lib.mjs rename to src/helper/converter.mjs diff --git a/src/hfround.mjs b/src/hfround.mjs index 0da59225..9276114b 100644 --- a/src/hfround.mjs +++ b/src/hfround.mjs @@ -1,4 +1,4 @@ -import { convertToNumber, roundToFloat16Bits } from "./helper/lib.mjs"; +import { convertToNumber, roundToFloat16Bits } from "./helper/converter.mjs"; /** * returns the nearest half precision float representation of a number.