New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cmpsr/contentful-core

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cmpsr/contentful-core - npm Package Compare versions

Comparing version

to
1.0.1

6

lib/client/createContentfulLink.js

@@ -65,8 +65,8 @@ "use strict";

var createContentfulLink = function(param) {
var accessToken = param.accessToken, space = param.space, _param_environment = param.environment, environment = _param_environment === void 0 ? "master" : _param_environment, _param_apiVersion = param.apiVersion, apiVersion = _param_apiVersion === void 0 ? "v1" : _param_apiVersion, _param_headers = param.headers, headers = _param_headers === void 0 ? {} : _param_headers;
var accessToken = param.accessToken, space = param.space, _param_environment = param.environment, environment = _param_environment === void 0 ? 'master' : _param_environment, _param_apiVersion = param.apiVersion, apiVersion = _param_apiVersion === void 0 ? 'v1' : _param_apiVersion, _param_headers = param.headers, headers = _param_headers === void 0 ? {} : _param_headers;
if (!space) {
throw new Error("Contentful `space` ID is required for initialization.");
throw new Error('Contentful `space` ID is required for initialization.');
}
if (!accessToken) {
throw new Error("Contentful `accessToken` is required for initialization.");
throw new Error('Contentful `accessToken` is required for initialization.');
}

@@ -73,0 +73,0 @@ var uri = "https://graphql.contentful.com/content/".concat(apiVersion, "/spaces/").concat(space, "/environments/").concat(environment);

@@ -11,2 +11,2 @@ "use strict";

});
var _client = require("./client/index");
var _client = require("./client");
{
"name": "@cmpsr/contentful-core",
"version": "1.0.0",
"version": "1.0.1",
"description": "Base Composer components for standing up a React/NextJS app that can dynamically render components based on Contentful Model types mapped to components and queries.",

@@ -27,3 +27,3 @@ "author": "Ryan Hefner <hi@ryanhefner.com>",

"test:coverage": "jest --coverage --testPathIgnorePatterns=lib/",
"type:check": "yarn tsc --project tsconfig.json --noEmit",
"type:check": "tsc --project tsconfig.json --noEmit",
"type:emit": "tsc --project ./tsconfig.json -d --declarationDir lib --emitDeclarationOnly && find lib -type f \\( -name '*.test.*' -o -name '*.stories.*' \\) -exec rm {} +"

@@ -30,0 +30,0 @@ },

@@ -7,6 +7,6 @@ # contentful-core

Install the package using Yarn:
Install the package using npm:
```sh
yarn add @cmpsr/contentful-core
npm install @cmpsr/contentful-core
```

@@ -13,0 +13,0 @@