jukebox-media-server 0.5.1 → 0.7.0

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.
Files changed (32) hide show
  1. package/README.md +18 -20
  2. package/dist/client/assets/{Watch-Ja4PAA8Y.js → Watch-BiR2iXrC.js} +33 -33
  3. package/dist/client/assets/index-CKZbQJYY.css +1 -0
  4. package/dist/client/assets/index-CoxOmmZz.js +87 -0
  5. package/dist/client/index.html +2 -2
  6. package/dist/client/sw.js +1 -1
  7. package/dist/server/HttpApiBuilder-DWwOvarr.js +42786 -0
  8. package/dist/server/better-sqlite3-CkwhTVXW.js +129 -0
  9. package/dist/server/bun-database-CqinoQgb.js +14 -0
  10. package/dist/server/bun-database-oVoIc-C8.js +15 -0
  11. package/dist/server/bun-sqlite-Bk_yjDLi.js +134 -0
  12. package/dist/server/chunk-CrysgU_F.js +36 -0
  13. package/dist/server/config-CCAveLuN.js +12 -0
  14. package/dist/server/esm-Dm4Gq4cv.js +40975 -0
  15. package/dist/server/index.js +3884 -5603
  16. package/dist/server/{indexes-VMR6QVVl.js → indexes-vPbUiKXP.js} +4 -100
  17. package/dist/server/{better-sqlite3-Dy_YhTFe.js → logger-ygdFSBOU.js} +243 -368
  18. package/dist/server/{migrator-CWPnMvx5.js → migrator-8uumkKvi.js} +1 -7
  19. package/dist/server/migrator-CpDrzLY4.js +8 -0
  20. package/dist/server/migrator-D9F-ETAB.js +8 -0
  21. package/dist/server/schema-1sWMC8cP.js +59 -0
  22. package/dist/server/schema-B7-kIAVY.js +145 -0
  23. package/dist/server/select-62doObBa.js +101 -0
  24. package/drizzle/0011_loose_eternity.sql +1 -0
  25. package/drizzle/meta/0011_snapshot.json +1066 -0
  26. package/drizzle/meta/_journal.json +8 -1
  27. package/drizzle-telemetry/0000_great_thor.sql +45 -0
  28. package/drizzle-telemetry/meta/0000_snapshot.json +320 -0
  29. package/drizzle-telemetry/meta/_journal.json +13 -0
  30. package/package.json +22 -8
  31. package/dist/client/assets/index-AENKhh_8.css +0 -1
  32. package/dist/client/assets/index-Cm9WIhoR.js +0 -58
@@ -745,105 +745,6 @@ function isConfig(data) {
745
745
  }
746
746
  const textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder();
747
747
  //#endregion
748
- //#region node_modules/drizzle-orm/sql/expressions/conditions.js
749
- function bindIfParam(value, column) {
750
- if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) return new Param(value, column);
751
- return value;
752
- }
753
- const eq = (left, right) => {
754
- return sql`${left} = ${bindIfParam(right, left)}`;
755
- };
756
- const ne = (left, right) => {
757
- return sql`${left} <> ${bindIfParam(right, left)}`;
758
- };
759
- function and(...unfilteredConditions) {
760
- const conditions = unfilteredConditions.filter((c) => c !== void 0);
761
- if (conditions.length === 0) return;
762
- if (conditions.length === 1) return new SQL(conditions);
763
- return new SQL([
764
- new StringChunk("("),
765
- sql.join(conditions, new StringChunk(" and ")),
766
- new StringChunk(")")
767
- ]);
768
- }
769
- function or(...unfilteredConditions) {
770
- const conditions = unfilteredConditions.filter((c) => c !== void 0);
771
- if (conditions.length === 0) return;
772
- if (conditions.length === 1) return new SQL(conditions);
773
- return new SQL([
774
- new StringChunk("("),
775
- sql.join(conditions, new StringChunk(" or ")),
776
- new StringChunk(")")
777
- ]);
778
- }
779
- function not(condition) {
780
- return sql`not ${condition}`;
781
- }
782
- const gt = (left, right) => {
783
- return sql`${left} > ${bindIfParam(right, left)}`;
784
- };
785
- const gte = (left, right) => {
786
- return sql`${left} >= ${bindIfParam(right, left)}`;
787
- };
788
- const lt = (left, right) => {
789
- return sql`${left} < ${bindIfParam(right, left)}`;
790
- };
791
- const lte = (left, right) => {
792
- return sql`${left} <= ${bindIfParam(right, left)}`;
793
- };
794
- function inArray(column, values) {
795
- if (Array.isArray(values)) {
796
- if (values.length === 0) return sql`false`;
797
- return sql`${column} in ${values.map((v) => bindIfParam(v, column))}`;
798
- }
799
- return sql`${column} in ${bindIfParam(values, column)}`;
800
- }
801
- function notInArray(column, values) {
802
- if (Array.isArray(values)) {
803
- if (values.length === 0) return sql`true`;
804
- return sql`${column} not in ${values.map((v) => bindIfParam(v, column))}`;
805
- }
806
- return sql`${column} not in ${bindIfParam(values, column)}`;
807
- }
808
- function isNull(value) {
809
- return sql`${value} is null`;
810
- }
811
- function isNotNull(value) {
812
- return sql`${value} is not null`;
813
- }
814
- function exists(subquery) {
815
- return sql`exists ${subquery}`;
816
- }
817
- function notExists(subquery) {
818
- return sql`not exists ${subquery}`;
819
- }
820
- function between(column, min, max) {
821
- return sql`${column} between ${bindIfParam(min, column)} and ${bindIfParam(max, column)}`;
822
- }
823
- function notBetween(column, min, max) {
824
- return sql`${column} not between ${bindIfParam(min, column)} and ${bindIfParam(max, column)}`;
825
- }
826
- function like(column, value) {
827
- return sql`${column} like ${value}`;
828
- }
829
- function notLike(column, value) {
830
- return sql`${column} not like ${value}`;
831
- }
832
- function ilike(column, value) {
833
- return sql`${column} ilike ${value}`;
834
- }
835
- function notIlike(column, value) {
836
- return sql`${column} not ilike ${value}`;
837
- }
838
- //#endregion
839
- //#region node_modules/drizzle-orm/sql/expressions/select.js
840
- function asc(column) {
841
- return sql`${column} asc`;
842
- }
843
- function desc(column) {
844
- return sql`${column} desc`;
845
- }
846
- //#endregion
847
748
  //#region node_modules/drizzle-orm/sqlite-core/foreign-keys.js
848
749
  var ForeignKeyBuilder = class {
849
750
  static [entityKind] = "SQLiteForeignKeyBuilder";
@@ -1402,8 +1303,11 @@ var Index = class {
1402
1303
  };
1403
1304
  }
1404
1305
  };
1306
+ function index(name) {
1307
+ return new IndexBuilderOn(name, false);
1308
+ }
1405
1309
  function uniqueIndex(name) {
1406
1310
  return new IndexBuilderOn(name, true);
1407
1311
  }
1408
1312
  //#endregion
1409
- export { is as $, or as A, SQL as B, ne as C, notIlike as D, notExists as E, isConfig as F, Table as G, fillPlaceholders as H, mapResultRow as I, ViewBaseConfig as J, getTableName as K, mapUpdateSet as L, getTableColumns as M, getTableLikeName as N, notInArray as O, haveSameKeys as P, entityKind as Q, orderSelectedFields as R, lte as S, notBetween as T, sql as U, View as V, Columns as W, WithSubquery as X, Subquery as Y, Column as Z, inArray as _, real as a, like as b, asc as c, between as d, eq as f, ilike as g, gte as h, text as i, applyMixins as j, notLike as k, desc as l, gt as m, SQLiteTable as n, integer as o, exists as p, getTableUniqueName as q, sqliteTable as r, SQLiteColumn as s, uniqueIndex as t, and as u, isNotNull as v, not as w, lt as x, isNull as y, Param as z };
1313
+ export { ViewBaseConfig as A, isDriverValueEncoder as C, Table as D, Columns as E, is as F, WithSubquery as M, Column as N, getTableName as O, entityKind as P, fillPlaceholders as S, sql as T, Param as _, text as a, StringChunk as b, SQLiteColumn as c, getTableLikeName as d, haveSameKeys as f, orderSelectedFields as g, mapUpdateSet as h, sqliteTable as i, Subquery as j, getTableUniqueName as k, applyMixins as l, mapResultRow as m, uniqueIndex as n, real as o, isConfig as p, SQLiteTable as r, integer as s, index as t, getTableColumns as u, Placeholder as v, isSQLWrapper as w, View as x, SQL as y };