@tonaljs/core 5.0.3 → 5.0.4
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.
|
@@ -8,4 +8,4 @@ declare function deprecate<ResultFn extends (this: any, ...newArgs: any[]) => Re
|
|
|
8
8
|
declare const isNamed: (this: unknown, ...args: unknown[]) => boolean;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { deprecate, fillStr, isNamed };
|
|
11
|
-
//# sourceMappingURL=index.d.
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["isNamedPitch"],"sources":["../index.ts"],"sourcesContent":["import { isNamedPitch } from \"@tonaljs/pitch\";\n\nexport * from \"@tonaljs/pitch\";\nexport * from \"@tonaljs/pitch-distance\";\nexport * from \"@tonaljs/pitch-interval\";\nexport * from \"@tonaljs/pitch-note\";\n\nexport const fillStr = (s: string, n: number) => Array(Math.abs(n) + 1).join(s);\n\nexport function deprecate<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ResultFn extends (this: any, ...newArgs: any[]) => ReturnType<ResultFn>,\n>(original: string, alternative: string, fn: ResultFn) {\n return function (this: unknown, ...args: unknown[]): ReturnType<ResultFn> {\n // tslint:disable-next-line\n console.warn(`${original} is deprecated. Use ${alternative}.`);\n return fn.apply(this, args);\n };\n}\n\nexport const isNamed = deprecate(\"isNamed\", \"isNamedPitch\", isNamedPitch);\n"],"mappings":";;;AAOA,MAAa,WAAW,GAAW,MAAc,MAAM,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;AAE9E,SAAgB,UAGd,UAAkB,aAAqB,IAAc;CACrD,OAAO,SAAyB,GAAG,MAAuC;EAExE,QAAQ,KAAK,GAAG,SAAS,sBAAsB,YAAY,EAAE;EAC7D,OAAO,GAAG,MAAM,MAAM,IAAI;CAC5B;AACF;AAEA,MAAa,UAAU,UAAU,WAAW,gBAAgBA,eAAAA,YAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonaljs/core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Music theory library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"music",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tonaljs/pitch": "5.0.
|
|
22
|
-
"@tonaljs/pitch-interval": "6.1.
|
|
23
|
-
"@tonaljs/pitch-distance": "5.0.
|
|
24
|
-
"@tonaljs/pitch-note": "6.1.
|
|
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"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "tsdown index.ts --sourcemap --dts --format esm,cjs"
|
|
27
|
+
"build": "tsdown index.ts --sourcemap --dts --format esm,cjs --no-fixed-extension"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["isNamedPitch"],"sources":["../index.ts"],"sourcesContent":["import { isNamedPitch } from \"@tonaljs/pitch\";\n\nexport * from \"@tonaljs/pitch\";\nexport * from \"@tonaljs/pitch-distance\";\nexport * from \"@tonaljs/pitch-interval\";\nexport * from \"@tonaljs/pitch-note\";\n\nexport const fillStr = (s: string, n: number) => Array(Math.abs(n) + 1).join(s);\n\nexport function deprecate<\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ResultFn extends (this: any, ...newArgs: any[]) => ReturnType<ResultFn>,\n>(original: string, alternative: string, fn: ResultFn) {\n return function (this: unknown, ...args: unknown[]): ReturnType<ResultFn> {\n // tslint:disable-next-line\n console.warn(`${original} is deprecated. Use ${alternative}.`);\n return fn.apply(this, args);\n };\n}\n\nexport const isNamed = deprecate(\"isNamed\", \"isNamedPitch\", isNamedPitch);\n"],"mappings":";;;AAOA,MAAa,WAAW,GAAW,MAAc,MAAM,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;AAE9E,SAAgB,UAGd,UAAkB,aAAqB,IAAc;CACrD,OAAO,SAAyB,GAAG,MAAuC;EAExE,QAAQ,KAAK,GAAG,SAAS,sBAAsB,YAAY,EAAE;EAC7D,OAAO,GAAG,MAAM,MAAM,IAAI;CAC5B;AACF;AAEA,MAAa,UAAU,UAAU,WAAW,gBAAgBA,eAAAA,YAAY"}
|