@tonaljs/core 5.0.4 → 5.0.6

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/README.md CHANGED
@@ -158,7 +158,7 @@ Take a look to [@tonaljs/note](/packages/note) or [@tonaljs/interval](/packages/
158
158
  #### How do I get the note frequency and midi number?
159
159
 
160
160
  ```js
161
- note("C4").octave; // => 4
161
+ note("C4").oct; // => 4
162
162
  note("C4").midi; // => 60
163
163
  ```
164
164
 
package/dist/index.d.mts CHANGED
@@ -2,10 +2,8 @@ export * from "@tonaljs/pitch";
2
2
  export * from "@tonaljs/pitch-distance";
3
3
  export * from "@tonaljs/pitch-interval";
4
4
  export * from "@tonaljs/pitch-note";
5
- //#region index.d.ts
6
5
  declare const fillStr: (s: string, n: number) => string;
7
6
  declare function deprecate<ResultFn extends (this: any, ...newArgs: any[]) => ReturnType<ResultFn>>(original: string, alternative: string, fn: ResultFn): (this: unknown, ...args: unknown[]) => ReturnType<ResultFn>;
8
7
  declare const isNamed: (this: unknown, ...args: unknown[]) => boolean;
9
- //#endregion
10
8
  export { deprecate, fillStr, isNamed };
11
9
  //# sourceMappingURL=index.d.mts.map
package/dist/index.d.ts CHANGED
@@ -2,10 +2,8 @@ export * from "@tonaljs/pitch";
2
2
  export * from "@tonaljs/pitch-distance";
3
3
  export * from "@tonaljs/pitch-interval";
4
4
  export * from "@tonaljs/pitch-note";
5
- //#region index.d.ts
6
5
  declare const fillStr: (s: string, n: number) => string;
7
6
  declare function deprecate<ResultFn extends (this: any, ...newArgs: any[]) => ReturnType<ResultFn>>(original: string, alternative: string, fn: ResultFn): (this: unknown, ...args: unknown[]) => ReturnType<ResultFn>;
8
7
  declare const isNamed: (this: unknown, ...args: unknown[]) => boolean;
9
- //#endregion
10
8
  export { deprecate, fillStr, isNamed };
11
9
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let _tonaljs_pitch = require("@tonaljs/pitch");
3
- //#region index.ts
3
+ // index.ts
4
4
  const fillStr = (s, n) => Array(Math.abs(n) + 1).join(s);
5
5
  function deprecate(original, alternative, fn) {
6
6
  return function(...args) {
@@ -9,7 +9,6 @@ function deprecate(original, alternative, fn) {
9
9
  };
10
10
  }
11
11
  const isNamed = deprecate("isNamed", "isNamedPitch", _tonaljs_pitch.isNamedPitch);
12
- //#endregion
13
12
  exports.deprecate = deprecate;
14
13
  exports.fillStr = fillStr;
15
14
  exports.isNamed = isNamed;
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ export * from "@tonaljs/pitch";
3
3
  export * from "@tonaljs/pitch-distance";
4
4
  export * from "@tonaljs/pitch-interval";
5
5
  export * from "@tonaljs/pitch-note";
6
- //#region index.ts
6
+ // index.ts
7
7
  const fillStr = (s, n) => Array(Math.abs(n) + 1).join(s);
8
8
  function deprecate(original, alternative, fn) {
9
9
  return function(...args) {
@@ -12,7 +12,6 @@ function deprecate(original, alternative, fn) {
12
12
  };
13
13
  }
14
14
  const isNamed = deprecate("isNamed", "isNamedPitch", isNamedPitch);
15
- //#endregion
16
15
  export { deprecate, fillStr, isNamed };
17
16
 
18
17
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonaljs/core",
3
- "version": "5.0.4",
3
+ "version": "5.0.6",
4
4
  "description": "Music theory library",
5
5
  "keywords": [
6
6
  "music",
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@tonaljs/pitch": "5.0.3",
22
- "@tonaljs/pitch-interval": "6.1.2",
23
- "@tonaljs/pitch-distance": "5.0.7",
24
- "@tonaljs/pitch-note": "6.1.2"
22
+ "@tonaljs/pitch-interval": "6.3.0",
23
+ "@tonaljs/pitch-distance": "5.1.1",
24
+ "@tonaljs/pitch-note": "6.1.3"
25
25
  },
26
26
  "scripts": {
27
- "build": "tsdown index.ts --sourcemap --dts --format esm,cjs --no-fixed-extension"
27
+ "build": "tsdown"
28
28
  }
29
29
  }