@symbo.ls/scratch 2.11.522 → 2.11.523
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/dist/cjs/index.js
CHANGED
|
@@ -1227,7 +1227,7 @@ var generateSequence = (sequenceProps) => {
|
|
|
1227
1227
|
};
|
|
1228
1228
|
var generateSequencePosition = (sequenceProps, position = 0) => {
|
|
1229
1229
|
const { type, base, ratio, subSequence } = sequenceProps;
|
|
1230
|
-
const letterKey = (
|
|
1230
|
+
const letterKey = isString(position) ? position : numToLetterMap[position];
|
|
1231
1231
|
if (!letterKey) {
|
|
1232
1232
|
console.warn(`Position ${position} is out of range in numToLetterMap`);
|
|
1233
1233
|
return null;
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -1036,7 +1036,7 @@ var generateSequence = (sequenceProps) => {
|
|
|
1036
1036
|
};
|
|
1037
1037
|
var generateSequencePosition = (sequenceProps, position = 0) => {
|
|
1038
1038
|
const { type, base, ratio, subSequence } = sequenceProps;
|
|
1039
|
-
const letterKey = (
|
|
1039
|
+
const letterKey = isString(position) ? position : numToLetterMap[position];
|
|
1040
1040
|
if (!letterKey) {
|
|
1041
1041
|
console.warn(`Position ${position} is out of range in numToLetterMap`);
|
|
1042
1042
|
return null;
|
|
@@ -760,7 +760,7 @@ var generateSequence = (sequenceProps) => {
|
|
|
760
760
|
};
|
|
761
761
|
var generateSequencePosition = (sequenceProps, position = 0) => {
|
|
762
762
|
const { type, base, ratio, subSequence } = sequenceProps;
|
|
763
|
-
const letterKey = (
|
|
763
|
+
const letterKey = isString(position) ? position : numToLetterMap[position];
|
|
764
764
|
if (!letterKey) {
|
|
765
765
|
console.warn(`Position ${position} is out of range in numToLetterMap`);
|
|
766
766
|
return null;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@symbo.ls/scratch",
|
|
3
3
|
"description": "Φ / CSS framework and methodology.",
|
|
4
4
|
"author": "symbo.ls",
|
|
5
|
-
"version": "2.11.
|
|
5
|
+
"version": "2.11.523",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@symbo.ls/utils": "^2.11.512",
|
|
31
31
|
"color-contrast-checker": "^1.5.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "08e5b257605d1475f4628529f8e35373d87eb369"
|
|
34
34
|
}
|
package/src/utils/sequence.js
CHANGED
|
@@ -170,7 +170,7 @@ export const generateSequence = (sequenceProps) => {
|
|
|
170
170
|
|
|
171
171
|
export const generateSequencePosition = (sequenceProps, position = 0) => {
|
|
172
172
|
const { type, base, ratio, subSequence } = sequenceProps
|
|
173
|
-
const letterKey =
|
|
173
|
+
const letterKey = isString(position) ? position : numToLetterMap[position]
|
|
174
174
|
|
|
175
175
|
if (!letterKey) {
|
|
176
176
|
console.warn(`Position ${position} is out of range in numToLetterMap`)
|