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

@prismicio/client

Package Overview
Dependencies
Maintainers
18
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prismicio/client - npm Package Compare versions

Comparing version 6.0.0-alpha.5 to 6.0.0-alpha.6

8

dist/index.d.ts

@@ -378,9 +378,3 @@ import * as prismicT from '@prismicio/types';

*/
query: <TDocument extends prismicT.PrismicDocument<{
[key: string]: prismicT.AnyRegularField | prismicT.GroupField | prismicT.SliceZone<prismicT.Slice<string, {
[key: string]: prismicT.AnyRegularField;
}, {
[key: string]: prismicT.AnyRegularField;
}>>;
}, string, string>>(params?: Partial<BuildQueryURLArgs> | undefined) => Promise<Query<TDocument>>;
query: <TDocument extends prismicT.PrismicDocument<Record<string, prismicT.AnyRegularField | prismicT.GroupField<Record<string, prismicT.AnyRegularField>> | prismicT.SliceZone<prismicT.Slice<string, Record<string, prismicT.AnyRegularField>, Record<string, prismicT.AnyRegularField>>>>, string, string>>(params?: Partial<BuildQueryURLArgs> | undefined) => Promise<Query<TDocument>>;
/**

@@ -387,0 +381,0 @@ * Queries content from the Prismic repository.

22

dist/index.es.js

@@ -16,3 +16,3 @@ import * as prismicH from '@prismicio/helpers';

var _a;
const {ref, predicates, ...params} = args;
const { ref, predicates, ...params } = args;
const url = new URL(`documents/search`, `${endpoint}/`);

@@ -216,3 +216,3 @@ url.searchParams.set("ref", ref);

set(key, value, ttl) {
cache.set(key, {expiresAt: new Date().getTime() + ttl, value});
cache.set(key, { expiresAt: new Date().getTime() + ttl, value });
}

@@ -288,4 +288,4 @@ };

async getAll(params = {}) {
const {limit = Infinity, ...actualParams} = params;
const resolvedParams = {pageSize: MAX_PAGE_SIZE, ...actualParams};
const { limit = Infinity, ...actualParams } = params;
const resolvedParams = { pageSize: MAX_PAGE_SIZE, ...actualParams };
const result = await this.get(resolvedParams);

@@ -296,3 +296,3 @@ let page = result.page;

page += 1;
const result2 = await this.get({...resolvedParams, page});
const result2 = await this.get({ ...resolvedParams, page });
documents = [...documents, ...result2.results];

@@ -422,3 +422,3 @@ }

type: 1,
payload: {releaseId}
payload: { releaseId }
};

@@ -430,3 +430,3 @@ }

type: 2,
payload: {releaseLabel}
payload: { releaseLabel }
};

@@ -438,3 +438,3 @@ }

type: 3,
payload: {refStringOrFn: ref}
payload: { refStringOrFn: ref }
};

@@ -509,3 +509,3 @@ }

const accessToken = (params == null ? void 0 : params.accessToken) || this.accessToken;
return accessToken ? {headers: {Authorization: `Token ${accessToken}`}} : {};
return accessToken ? { headers: { Authorization: `Token ${accessToken}` } } : {};
}

@@ -519,3 +519,3 @@ async fetch(url, params) {

} catch (e) {
throw new PrismicError(void 0, {url});
throw new PrismicError(void 0, { url });
}

@@ -544,3 +544,3 @@ switch (res.status) {

}
throw new PrismicError(void 0, {url, response: json});
throw new PrismicError(void 0, { url, response: json });
}

@@ -547,0 +547,0 @@ }

{
"name": "@prismicio/client",
"version": "6.0.0-alpha.5",
"description": "The official JavaScript + TypeScript client library for Prismic",
"keywords": [
"prismic",
"prismic.io",
"cms",
"content",
"api",
"typescript"
],
"repository": {
"type": "git",
"url": "ssh://git@github.com/prismicio/prismic-javascript.git"
},
"license": "Apache-2.0",
"author": "Prismic <contact@prismic.io> (https://prismic.io)",
"type": "module",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.es.js"
},
"./package.json": "./package.json"
},
"main": "dist/index.cjs",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"scripts": {
"build": "siroc build",
"dev": "siroc build --watch",
"prepare": "npm run build",
"release": "npm run build && npm run test && standard-version && git push --follow-tags && npm run build && npm publish",
"release:dry": "standard-version --dry-run",
"release:alpha": "npm run build && npm run test && standard-version --release-as major --prerelease alpha && git push --follow-tags && npm run build && npm publish --tag alpha",
"release:alpha:dry": "standard-version --release-as major --prerelease alpha --dry-run",
"format": "prettier --write README.md .eslintrc.cjs ava.config.js package.json tsconfig.json {src,examples,test}/**",
"lint": "eslint --ext .js,.ts .",
"unit": "nyc --reporter=lcovonly --reporter=text --exclude-after-remap=false ava",
"test": "npm run lint && npm run unit"
},
"simple-git-hooks": {
"commit-msg": "npx commitlint --edit"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"dependencies": {
"@prismicio/helpers": "^2.0.0-alpha.0"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@prismicio/types": "~0.0.7",
"@types/node-fetch": "^2.5.10",
"@types/sinon": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.25.0",
"ava": "^3.15.0",
"eslint": "^7.27.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"msw": "^0.29.0",
"node-fetch": "^2.6.1",
"nyc": "^15.1.0",
"prettier": "^2.3.0",
"simple-git-hooks": "^2.4.1",
"sinon": "^11.1.1",
"siroc": "^0.10.1",
"standard-version": "^9.3.0",
"ts-eager": "^2.0.2",
"type-fest": "^1.1.3",
"typescript": "^4.3.2"
},
"engines": {
"node": ">=12.13.0"
},
"publishConfig": {
"access": "public"
}
"name": "@prismicio/client",
"version": "6.0.0-alpha.6",
"description": "The official JavaScript + TypeScript client library for Prismic",
"keywords": [
"prismic",
"prismic.io",
"cms",
"content",
"api",
"typescript"
],
"repository": {
"type": "git",
"url": "ssh://git@github.com/prismicio/prismic-javascript.git"
},
"license": "Apache-2.0",
"author": "Prismic <contact@prismic.io> (https://prismic.io)",
"type": "module",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.es.js"
},
"./package.json": "./package.json"
},
"main": "dist/index.cjs",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"scripts": {
"build": "siroc build",
"dev": "siroc build --watch",
"prepare": "npm run build",
"release": "npm run build && npm run test && standard-version && git push --follow-tags && npm run build && npm publish",
"release:dry": "standard-version --dry-run",
"release:alpha": "npm run build && npm run test && standard-version --release-as major --prerelease alpha && git push --follow-tags && npm run build && npm publish --tag alpha",
"release:alpha:dry": "standard-version --release-as major --prerelease alpha --dry-run",
"format": "prettier --write README.md .eslintrc.cjs ava.config.js package.json tsconfig.json {src,examples,test}/**",
"lint": "eslint --ext .js,.ts .",
"unit": "nyc --reporter=lcovonly --reporter=text --exclude-after-remap=false ava",
"test": "npm run lint && npm run unit"
},
"simple-git-hooks": {
"commit-msg": "npx commitlint --edit"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"dependencies": {
"@prismicio/helpers": "^2.0.0-alpha.3"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@prismicio/types": "^0.1.1",
"@types/node-fetch": "^2.5.10",
"@types/sinon": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.25.0",
"ava": "^3.15.0",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"msw": "^0.30.1",
"node-fetch": "^2.6.1",
"nyc": "^15.1.0",
"prettier": "^2.3.0",
"simple-git-hooks": "^2.4.1",
"sinon": "^11.1.1",
"siroc": "^0.11.1",
"standard-version": "^9.3.0",
"ts-eager": "^2.0.2",
"type-fest": "^1.1.3",
"typescript": "^4.3.5"
},
"engines": {
"node": ">=12.13.0"
},
"publishConfig": {
"access": "public"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc