@glissandoo/lib 1.3.22 → 1.3.23

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.
@@ -1,4 +1,5 @@
1
1
  import { InstrumentId } from '../instruments';
2
2
  import { MusicStyleType } from './index';
3
+ export declare const orders: Record<string, InstrumentId[]>;
3
4
  export declare const getInstrumentsOrderByMusicStyle: (musicStyle: MusicStyleType) => InstrumentId[];
4
5
  export declare const orderByMusicStyle: <T>(list: T[], field: string, musicStyle: MusicStyleType) => T[];
@@ -3,13 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.orderByMusicStyle = exports.getInstrumentsOrderByMusicStyle = void 0;
6
+ exports.orderByMusicStyle = exports.getInstrumentsOrderByMusicStyle = exports.orders = void 0;
7
7
  const get_1 = __importDefault(require("lodash/get"));
8
8
  const orderBy_1 = __importDefault(require("lodash/orderBy"));
9
9
  const sortBy_1 = __importDefault(require("lodash/sortBy"));
10
10
  const instruments_1 = require("../instruments");
11
11
  const index_1 = require("./index");
12
- const orders = {
12
+ exports.orders = {
13
13
  [index_1.MusicStyleId.Band]: [
14
14
  instruments_1.InstrumentId.MusicConductor,
15
15
  instruments_1.InstrumentId.Piccolo,
@@ -188,7 +188,7 @@ const orders = {
188
188
  ],
189
189
  };
190
190
  const getInstrumentsOrderByMusicStyle = (musicStyle) => {
191
- return musicStyle in orders ? orders[musicStyle] : Object.values(instruments_1.InstrumentId);
191
+ return musicStyle in exports.orders ? exports.orders[musicStyle] : Object.values(instruments_1.InstrumentId);
192
192
  };
193
193
  exports.getInstrumentsOrderByMusicStyle = getInstrumentsOrderByMusicStyle;
194
194
  const orderByMusicStyle = (list, field, musicStyle) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.3.22",
3
+ "version": "1.3.23",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",