@navikt/appstatus-react
Advanced tools
Comparing version 2.0.0 to 2.0.1-beta.0
@@ -14,2 +14,3 @@ import { SanityStatusMessage } from './sanityObjects'; | ||
dataset: string; | ||
apiVersion?: string; | ||
token?: string; | ||
@@ -16,0 +17,0 @@ } |
@@ -27,3 +27,4 @@ "use strict"; | ||
sanityConfigPropIsValid(config['projectId']) && | ||
sanityConfigPropIsValid(config['dataset'])); | ||
sanityConfigPropIsValid(config['dataset']) && | ||
sanityConfigPropIsValid(config['apiVersion'])); | ||
} | ||
@@ -30,0 +31,0 @@ catch (_a) { |
import { SanityConfig } from '../types'; | ||
export declare const getAppSanityClient: ({ projectId, dataset, token }: SanityConfig) => import("@sanity/client").SanityClient; | ||
export declare const getAppSanityClient: ({ projectId, dataset, apiVersion, token }: SanityConfig) => import("@sanity/client").SanityClient; |
@@ -8,6 +8,7 @@ "use strict"; | ||
const client_1 = __importDefault(require("@sanity/client")); | ||
const getAppSanityClient = ({ projectId, dataset, token = '' }) => { | ||
const getAppSanityClient = ({ projectId, dataset, apiVersion = '', token = '' }) => { | ||
return client_1.default({ | ||
projectId, | ||
dataset, | ||
apiVersion, | ||
token, | ||
@@ -14,0 +15,0 @@ useCdn: false, |
{ | ||
"name": "@navikt/appstatus-react", | ||
"version": "2.0.0", | ||
"version": "2.0.1-beta.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "scripts": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
30014
566
2
3