@symbo.ls/scratch 2.11.521 → 2.11.522
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
|
@@ -1225,9 +1225,9 @@ var generateSequence = (sequenceProps) => {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
return sequenceProps;
|
|
1227
1227
|
};
|
|
1228
|
-
var generateSequencePosition = (sequenceProps, position) => {
|
|
1228
|
+
var generateSequencePosition = (sequenceProps, position = 0) => {
|
|
1229
1229
|
const { type, base, ratio, subSequence } = sequenceProps;
|
|
1230
|
-
const letterKey = numToLetterMap[position];
|
|
1230
|
+
const letterKey = (void 0).call("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
|
@@ -1034,9 +1034,9 @@ var generateSequence = (sequenceProps) => {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
return sequenceProps;
|
|
1036
1036
|
};
|
|
1037
|
-
var generateSequencePosition = (sequenceProps, position) => {
|
|
1037
|
+
var generateSequencePosition = (sequenceProps, position = 0) => {
|
|
1038
1038
|
const { type, base, ratio, subSequence } = sequenceProps;
|
|
1039
|
-
const letterKey = numToLetterMap[position];
|
|
1039
|
+
const letterKey = (void 0).call("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;
|
|
@@ -758,9 +758,9 @@ var generateSequence = (sequenceProps) => {
|
|
|
758
758
|
}
|
|
759
759
|
return sequenceProps;
|
|
760
760
|
};
|
|
761
|
-
var generateSequencePosition = (sequenceProps, position) => {
|
|
761
|
+
var generateSequencePosition = (sequenceProps, position = 0) => {
|
|
762
762
|
const { type, base, ratio, subSequence } = sequenceProps;
|
|
763
|
-
const letterKey = numToLetterMap[position];
|
|
763
|
+
const letterKey = (void 0).call("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.522",
|
|
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": "f0cf0f8e16c7cac278886a322e85cb8d8188ca24"
|
|
34
34
|
}
|
package/src/utils/sequence.js
CHANGED
|
@@ -168,9 +168,9 @@ export const generateSequence = (sequenceProps) => {
|
|
|
168
168
|
return sequenceProps
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
export const generateSequencePosition = (sequenceProps, position) => {
|
|
171
|
+
export const generateSequencePosition = (sequenceProps, position = 0) => {
|
|
172
172
|
const { type, base, ratio, subSequence } = sequenceProps
|
|
173
|
-
const letterKey = numToLetterMap[position]
|
|
173
|
+
const letterKey = this.call("isString", position) ? position : numToLetterMap[position]
|
|
174
174
|
|
|
175
175
|
if (!letterKey) {
|
|
176
176
|
console.warn(`Position ${position} is out of range in numToLetterMap`)
|