@superfan-app/spotify-auth 0.1.16 → 0.1.17
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/package.json +1 -1
- package/plugin/build/index.js +2 -5
- package/plugin/src/index.ts +5 -1
- package/plugin/tsconfig.json +1 -2
package/package.json
CHANGED
package/plugin/build/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
7
4
|
const withSpotifyQueryScheme_1 = require("./ios/withSpotifyQueryScheme");
|
|
8
5
|
const withSpotifyURLScheme_1 = require("./ios/withSpotifyURLScheme");
|
|
9
6
|
const withSpotifyConfig_1 = require("./withSpotifyConfig");
|
|
10
|
-
const
|
|
7
|
+
const pkg = require('../../package.json');
|
|
11
8
|
const withSpotifyAuth = (config, props) => {
|
|
12
9
|
config = (0, withSpotifyConfig_1.withSpotifyOAuthConfig)(config, props);
|
|
13
10
|
// iOS specific
|
|
@@ -15,4 +12,4 @@ const withSpotifyAuth = (config, props) => {
|
|
|
15
12
|
config = (0, withSpotifyURLScheme_1.withSpotifyURLScheme)(config, props);
|
|
16
13
|
return config;
|
|
17
14
|
};
|
|
18
|
-
exports.default = (0, config_plugins_1.createRunOncePlugin)(withSpotifyAuth,
|
|
15
|
+
exports.default = (0, config_plugins_1.createRunOncePlugin)(withSpotifyAuth, pkg.name, pkg.version);
|
package/plugin/src/index.ts
CHANGED
|
@@ -5,7 +5,11 @@ import { withSpotifyURLScheme } from './ios/withSpotifyURLScheme'
|
|
|
5
5
|
import { SpotifyConfig } from './types'
|
|
6
6
|
import { withSpotifyOAuthConfig } from './withSpotifyConfig'
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const pkg: {
|
|
9
|
+
name: string;
|
|
10
|
+
version: string;
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
12
|
+
} = require('../../package.json');
|
|
9
13
|
|
|
10
14
|
const withSpotifyAuth: ConfigPlugin<SpotifyConfig> = (config, props) => {
|
|
11
15
|
config = withSpotifyOAuthConfig(config, props)
|
package/plugin/tsconfig.json
CHANGED