Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
feat: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TANGUY Antoine committed May 21, 2021
1 parent 3ee44b7 commit 3ac4ae4
Show file tree
Hide file tree
Showing 5 changed files with 1,852 additions and 1,828 deletions.
8 changes: 5 additions & 3 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Command } from './types';
export { Command };
declare type TPlayingInfo = any;
declare const MusicControl: {
STATE_PLAYING: any;
STATE_PAUSED: any;
Expand All @@ -12,9 +14,9 @@ declare const MusicControl: {
RATING_5_STARS: any;
RATING_PERCENTAGE: any;
enableBackgroundMode: (enable: boolean) => void;
setNowPlaying: (info: any) => void;
setPlayback: (info: any) => void;
updatePlayback: (info: any) => void;
setNowPlaying: (info: TPlayingInfo) => void;
setPlayback: (info: TPlayingInfo) => void;
updatePlayback: (info: TPlayingInfo) => void;
resetNowPlaying: () => void;
enableControl: (controlName: string, enable: boolean, options?: {}) => void;
handleCommand: (commandName: Command, value: any) => void;
Expand Down
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Command = void 0;
/**
* @providesModule MusicControl
*/
Expand All @@ -12,6 +13,8 @@ var react_native_1 = require("react-native");
var resolveAssetSource_1 = __importDefault(require("react-native/Libraries/Image/resolveAssetSource"));
// @ts-ignore
var constants_1 = __importDefault(require("./constants"));
var types_1 = require("./types");
Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return types_1.Command; } });
var NativeMusicControl = react_native_1.NativeModules.MusicControlManager;
var handlers = {};
var listenerOfNativeMusicControl = null;
Expand Down Expand Up @@ -62,7 +65,7 @@ var MusicControl = {
if (IS_ANDROID) {
NativeMusicControl.setNotificationIds(notificationId, channelId);
}
},
},
on: function (actionName, cb) {
if (!listenerOfNativeMusicControl) {
listenerOfNativeMusicControl = (IS_ANDROID
Expand Down
1 change: 1 addition & 0 deletions lib/types.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Command = void 0;
var Command;
(function (Command) {
Command["play"] = "play";
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"semantic-release": "semantic-release"
},
"devDependencies": {
"@semantic-release/changelog": "^3.0.4",
"@semantic-release/git": "^7.0.16",
"@types/react-native": "^0.60.7",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/react-native": "^0.64.5",
"react-native": "^0.59.9",
"semantic-release": "^15.13.21",
"typescript": "^3.5.3"
"semantic-release": "^17.4.3",
"typescript": "^4.2.4"
}
}
Loading

0 comments on commit 3ac4ae4

Please sign in to comment.