|
1 | 1 | {
|
2 |
| - "name": "contentstack", |
3 |
| - "version": "3.18.0", |
4 |
| - "description": "Contentstack Javascript SDK", |
5 |
| - "homepage": "https://www.contentstack.com/", |
6 |
| - "author": { |
7 |
| - "name": "Contentstack", |
8 |
| - "url": "https://www.contentstack.com/" |
| 2 | + "name": "@contentstack/delivery-sdk", |
| 3 | + "version": "4.0.0-beta.1", |
| 4 | + "type": "commonjs", |
| 5 | + "main": "./dist/cjs/src/index.js", |
| 6 | + "types": "./dist/types/src/index.d.ts", |
| 7 | + "publishConfig": { |
| 8 | + "tag": "beta" |
9 | 9 | },
|
10 |
| - "main": "dist/node/contentstack.js", |
11 |
| - "browser": "dist/web/contentstack.js", |
12 |
| - "react-native": "dist/react-native/contentstack.js", |
13 |
| - "types": "./index.d.ts", |
14 |
| - |
15 | 10 | "scripts": {
|
16 |
| - "test": "npm run test:e2e && npm run test:typescript", |
17 |
| - "test:e2e": "tape test/index.js | tap-html --out ./tap-html.html", |
18 |
| - "test:typescript": "jest --config jest.config.js --testPathPattern=test/typescript", |
19 |
| - "automate": "node test.js", |
20 |
| - "build:node": "webpack --config webpack/webpack.node.js", |
21 |
| - "build:web": "webpack --config webpack/webpack.web.js", |
22 |
| - "build:react-native": "webpack --config webpack/webpack.react-native.js", |
23 |
| - "build:native-script": "webpack --config webpack/webpack.nativescript.js", |
24 |
| - "build": "npm run build:node && npm run build:web && npm run build:react-native && npm run build:native-script", |
25 |
| - "generate-docs": "node_modules/.bin/jsdoc --configure docs-config.json --verbose", |
26 |
| - "prepare": "npm run build", |
27 |
| - "pretest": "npm run build" |
| 11 | + "prepack": "npm run test", |
| 12 | + "test": "jest ./test/unit", |
| 13 | + "test:unit": "jest ./test/unit", |
| 14 | + "test:api": "jest ./test/api", |
| 15 | + "lint": "eslint . -c .eslintrc.json", |
| 16 | + "clean": "node tools/cleanup", |
| 17 | + "package": "npm run build && npm pack", |
| 18 | + "build": "npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types", |
| 19 | + "build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json", |
| 20 | + "build:esm": "node tools/cleanup esm && tsc -p config/tsconfig.esm.json", |
| 21 | + "build:umd": "node tools/cleanup umd && webpack --config config/webpack.config.js", |
| 22 | + "build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json" |
28 | 23 | },
|
29 |
| - "repository": { |
30 |
| - "type": "git", |
31 |
| - "url": "https://github.com/contentstack/contentstack-javascript.git" |
32 |
| - }, |
33 |
| - "_shasum": "a328ed07240476a26b31a23261355dc929e1da63", |
34 |
| - "_from": "contentstack@latest", |
35 |
| - "engines": { |
36 |
| - "node": ">= 10.14.2" |
37 |
| - }, |
38 |
| - "_npmUser": { |
39 |
| - "name": "mynk", |
40 |
| - |
41 |
| - }, |
42 |
| - "maintainers": [ |
43 |
| - { |
44 |
| - "name": "uttamukkoji", |
45 |
| - |
46 |
| - }, |
47 |
| - { |
48 |
| - "name": "hiteshbal", |
49 |
| - |
50 |
| - }, |
51 |
| - { |
52 |
| - "name": "mynk", |
53 |
| - |
54 |
| - } |
| 24 | + "dependencies": { |
| 25 | + "@contentstack/core": "^1.0.1", |
| 26 | + "@contentstack/utils": "^1.3.1", |
| 27 | + "@types/humps": "^2.0.6", |
| 28 | + "dotenv": "^16.3.1", |
| 29 | + "humps": "^2.0.1" |
| 30 | + }, |
| 31 | + "files": [ |
| 32 | + "dist", |
| 33 | + "package.json", |
| 34 | + "README.md" |
55 | 35 | ],
|
56 |
| - "dist": { |
57 |
| - "shasum": "a328ed07240476a26b31a23261355dc929e1da63", |
58 |
| - "tarball": "https://registry.npmjs.org/contentstack/-/contentstack-3.16.1.tgz" |
59 |
| - }, |
60 |
| - "license": "MIT", |
61 |
| - "directories": {}, |
62 |
| - "_resolved": "https://registry.npmjs.org/contentstack/-/contentstack-3.16.1.tgz", |
63 |
| - "_npmOperationalInternal": { |
64 |
| - "host": "packages-18-east.internal.npmjs.com", |
65 |
| - "tmp": "tmp/contentstack-3.15.0.tgz_1477830884275_0.9869455888401717" |
66 |
| - }, |
67 | 36 | "devDependencies": {
|
68 |
| - "@babel/core": "^7.23.3", |
69 |
| - "@babel/preset-env": "^7.23.3", |
70 |
| - "@babel/runtime": "^7.23.4", |
71 |
| - "@types/jest": "^26.0.24", |
72 |
| - "babel-loader": "^9.1.3", |
73 |
| - "clean-webpack-plugin": "^4.0.0", |
74 |
| - "compression-webpack-plugin": "^10.0.0", |
75 |
| - "dotenv": "^16.0.3", |
76 |
| - "es3ify-loader": "0.2.0", |
77 |
| - "fetch-mock-jest": "^1.3.0", |
78 |
| - "http-proxy-agent": "^3.0.0", |
| 37 | + "@nrwl/jest": "^17.2.8", |
| 38 | + "@types/jest": "^29.5.11", |
| 39 | + "axios-mock-adapter": "^1.22.0", |
| 40 | + "babel-jest": "^29.7.0", |
79 | 41 | "jest": "^29.7.0",
|
80 |
| - "jest-html-reporters": "^2.1.7", |
81 |
| - "jsdoc": "^4.0.2", |
82 |
| - "jshint": "^2.13.6", |
83 |
| - "minami": "^1.2.3", |
84 |
| - "node-request-interceptor": "^0.6.3", |
85 |
| - "nodemailer": "^6.9.1", |
86 |
| - "string-replace-loader": "^3.1.0", |
87 |
| - "tap-html": "^1.1.0", |
88 |
| - "tap-json": "1.0.0", |
89 |
| - "tape": "4.8.0", |
90 |
| - "terser-webpack-plugin": "^5.3.7", |
| 42 | + "jest-environment-jsdom": "^29.7.0", |
| 43 | + "jest-html-reporters": "^3.1.7", |
| 44 | + "jest-junit": "^16.0.0", |
91 | 45 | "ts-jest": "^29.1.1",
|
92 |
| - "typescript": "^4.9.5", |
93 |
| - "uglify-js": "2.8.29", |
94 |
| - "webpack": "^5.89.0", |
95 |
| - "webpack-cli": "^4.10.0", |
96 |
| - "webpack-md5-hash": "0.0.5", |
97 |
| - "webpack-merge": "4.1.0", |
98 |
| - "webpack-node-externals": "^3.0.0" |
99 |
| - }, |
100 |
| - "dependencies": { |
101 |
| - "@contentstack/utils": "^1.2.0", |
102 |
| - "es6-promise": "^4.1.1", |
103 |
| - "isomorphic-fetch": "^3.0.0", |
104 |
| - "localStorage": "1.0.4", |
105 |
| - "qs": "^6.11.2" |
| 46 | + "ts-loader": "^9.5.1", |
| 47 | + "ts-node": "10.9.2", |
| 48 | + "webpack-cli": "^5.1.4" |
106 | 49 | }
|
107 | 50 | }
|
0 commit comments