Socket
Socket
Sign inDemoInstall

prismic-javascript

Package Overview
Dependencies
8
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.7.1 to 3.0.0-beta.0

cjs/prismic-javascript.js

54

package.json

@@ -13,16 +13,16 @@ {

],
"version": "2.7.1",
"version": "3.0.0-beta.0",
"devDependencies": {
"chai": "^4.1.1",
"json-loader": "^0.5.4",
"@rollup/plugin-typescript": "^4.1.1",
"@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0",
"chai": "^4.2.0",
"eslint": "^6.8.0",
"mocha": "^5.2.0",
"nock": "^10.0.6",
"ts-loader": "^4.4.1",
"tslint": "^5.1.0",
"tslint-config-airbnb": "^5.11.1",
"typedoc": "^0.14.2",
"typescript": "^2.3.2",
"webpack": "^4.12.0",
"webpack-cli": "^3.0.8",
"yargs": "^11.0.0"
"nock": "^11.6.0",
"rollup": "^2.1.0",
"rollup-plugin-terser": "^5.3.0",
"tslib": "^1.11.1",
"typedoc": "^0.17.6",
"typescript": "^3.8.3"
},

@@ -33,17 +33,25 @@ "repository": {

},
"main": "dist/prismic-javascript.min.js",
"types": "./d.ts/index.d.ts",
"main": "cjs/prismic-javascript.js",
"module": "esm/prismic-javascript.mjs",
"unpkg": "umd/prismic-javascript.min.js",
"files": [
"cjs/",
"esm/",
"umd/",
"types/"
],
"types": "./types/index.d.ts",
"scripts": {
"build": "node node_modules/webpack-cli -p",
"dev": "node node_modules/webpack-cli -d --watch",
"check": "tsc --pretty --noEmit --project ./tsconfig.json --watch",
"test": "mocha",
"prepare": "npm run build & npm run docs",
"docs": "typedoc --mode file --out ./docs/ ./src/index.ts",
"lint": "tslint src/**/*.ts -e src/lru.ts -e src/Cookies.ts"
"build": "rollup -c",
"dev": "rollup -c -w",
"check": "tsc --pretty --noEmit --watch",
"test": "npm run build && mocha",
"prepublish": "npm run build & npm run docs & npm run declarations",
"docs": "typedoc --mode file --out ./docs ./src/index.ts",
"declarations": "tsc --emitDeclarationOnly --declaration --declarationDir ./types",
"lint": "eslint src/**/*.ts"
},
"dependencies": {
"cross-fetch": "^2.2.3",
"promise-polyfill": "8.0.0"
"cross-fetch": "^3.0.4"
}
}

@@ -13,2 +13,5 @@ ## JavaScript development for prismic.io API v2

🎉Our library will hit v3 soon! That's right, it's the v3 of an API V2 package...
You can try it by installing the beta version from npm. [Read the changelog](https://github.com/prismicio/prismic-javascript/releases/tag/3.0.0)!
---

@@ -24,2 +27,3 @@

> [Downloadable version](#downloadable-version) <br />
> [Polyfills](#polyfills) <br />
> [Demo project](#demo-project) <br />

@@ -89,8 +93,5 @@ > [Starter kits](#starter-kits) <br />

The kit is universal, it can be used:
#### Polyfills
To support legacy browsers include a promise polyfill.
* Server-side with NodeJS
* Client-side as part of your build with Browserify, Webpack
* Client-side with a simple script tag
#### Starter kits

@@ -140,3 +141,3 @@

If you included prismic through the script tag (CDN) there is a global variable PrismicJS:
If you included prismic through the script tag (CDN) there is a global variable PrismicJS:
```javascript

@@ -143,0 +144,0 @@ PrismicJS.api("https://your-repository-name.prismic.io/api").then( api => {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc