contentful-management 12.0.0-new-beta.1 → 12.0.0-new-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.min.js +1 -1
- package/dist/browser/index.min.js.map +1 -1
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/create-environment-api.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/create-environment-api.d.ts +1 -1
- package/dist/types/create-environment-api.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +9 -13
|
@@ -1405,7 +1405,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
1405
1405
|
},
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Gets an App Installation
|
|
1408
|
-
* @param id -
|
|
1408
|
+
* @param id - AppDefinition ID
|
|
1409
1409
|
* @return Promise for an App Installation
|
|
1410
1410
|
* @example ```javascript
|
|
1411
1411
|
* const contentful = require('contentful-management')
|
package/dist/esm/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ function createClient(params, opts = {}) {
|
|
|
22
22
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
23
23
|
const userAgent = getUserAgentHeader(
|
|
24
24
|
// @ts-expect-error
|
|
25
|
-
`${sdkMain}/${"
|
|
25
|
+
`${sdkMain}/${"0.0.0-determined-by-semantic-release"}`, params.application, params.integration, params.feature);
|
|
26
26
|
const adapter = createAdapter({ ...params, userAgent });
|
|
27
27
|
// Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
28
28
|
// https://github.com/microsoft/TypeScript/issues/26591
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../lib/index.ts"],"sourcesContent":[null],"names":["createContentfulApi"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;AAIG;AAgFH,SAAS,YAAY,CACnB,MAAqB,EACrB,OAGI,EAAE,EAAA;AAEN,IAAA,MAAM,OAAO,GACX,IAAI,CAAC,IAAI,KAAK,OAAO,GAAG,gCAAgC,GAAG,0BAA0B;IACvF,MAAM,SAAS,GAAG,kBAAkB;;AAElC,IAAA,CAAA,EAAG,OAAO,CAAA,CAAA,EAAI,
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../lib/index.ts"],"sourcesContent":[null],"names":["createContentfulApi"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;AAIG;AAgFH,SAAS,YAAY,CACnB,MAAqB,EACrB,OAGI,EAAE,EAAA;AAEN,IAAA,MAAM,OAAO,GACX,IAAI,CAAC,IAAI,KAAK,OAAO,GAAG,gCAAgC,GAAG,0BAA0B;IACvF,MAAM,SAAS,GAAG,kBAAkB;;AAElC,IAAA,CAAA,EAAG,OAAO,CAAA,CAAA,EAAI,sCAAW,CAAA,CAAE,EAC3B,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,OAAO,CACf;IAED,MAAM,OAAO,GAAG,aAAa,CAAC,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,CAAC;;;;AAKvD,IAAA,MAAM,WAAW,GAAgB,CAAC,OAAmC,KACnE,OAAO,CAAC,WAAW,CAAC,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,CAAC;AAEhD,IAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;QACzB,OAAO,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC;IACtD;SAAO;AACL,QAAA,OAAOA,eAAmB,CAAC,WAAW,CAAc;IACtD;AACF;;;;"}
|
|
@@ -1002,7 +1002,7 @@ export default function createEnvironmentApi(makeRequest: MakeRequest): {
|
|
|
1002
1002
|
}): Promise<import("./export-types").AppInstallation>;
|
|
1003
1003
|
/**
|
|
1004
1004
|
* Gets an App Installation
|
|
1005
|
-
* @param id -
|
|
1005
|
+
* @param id - AppDefinition ID
|
|
1006
1006
|
* @return Promise for an App Installation
|
|
1007
1007
|
* @example ```javascript
|
|
1008
1008
|
* const contentful = require('contentful-management')
|
|
@@ -1405,7 +1405,7 @@ function createEnvironmentApi(makeRequest) {
|
|
|
1405
1405
|
},
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Gets an App Installation
|
|
1408
|
-
* @param id -
|
|
1408
|
+
* @param id - AppDefinition ID
|
|
1409
1409
|
* @return Promise for an App Installation
|
|
1410
1410
|
* @example ```javascript
|
|
1411
1411
|
* const contentful = require('contentful-management')
|
package/dist/types/index.js
CHANGED
|
@@ -22,7 +22,7 @@ function createClient(params, opts = {}) {
|
|
|
22
22
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
23
23
|
const userAgent = getUserAgentHeader(
|
|
24
24
|
// @ts-expect-error
|
|
25
|
-
`${sdkMain}/${"
|
|
25
|
+
`${sdkMain}/${"0.0.0-determined-by-semantic-release"}`, params.application, params.integration, params.feature);
|
|
26
26
|
const adapter = createAdapter({ ...params, userAgent });
|
|
27
27
|
// Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
28
28
|
// https://github.com/microsoft/TypeScript/issues/26591
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/index.ts"],"sourcesContent":[null],"names":["createContentfulApi"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;AAIG;AAgFH,SAAS,YAAY,CACnB,MAAqB,EACrB,OAGI,EAAE,EAAA;AAEN,IAAA,MAAM,OAAO,GACX,IAAI,CAAC,IAAI,KAAK,OAAO,GAAG,gCAAgC,GAAG,0BAA0B;IACvF,MAAM,SAAS,GAAG,kBAAkB;;AAElC,IAAA,CAAA,EAAG,OAAO,CAAA,CAAA,EAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/index.ts"],"sourcesContent":[null],"names":["createContentfulApi"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;AAIG;AAgFH,SAAS,YAAY,CACnB,MAAqB,EACrB,OAGI,EAAE,EAAA;AAEN,IAAA,MAAM,OAAO,GACX,IAAI,CAAC,IAAI,KAAK,OAAO,GAAG,gCAAgC,GAAG,0BAA0B;IACvF,MAAM,SAAS,GAAG,kBAAkB;;AAElC,IAAA,CAAA,EAAG,OAAO,CAAA,CAAA,EAAI,sCAAW,CAAA,CAAE,EAC3B,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,WAAW,EAClB,MAAM,CAAC,OAAO,CACf;IAED,MAAM,OAAO,GAAG,aAAa,CAAC,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,CAAC;;;;AAKvD,IAAA,MAAM,WAAW,GAAgB,CAAC,OAAmC,KACnE,OAAO,CAAC,WAAW,CAAC,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,CAAC;AAEhD,IAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;QACzB,OAAO,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC;IACtD;SAAO;AACL,QAAA,OAAOA,eAAmB,CAAC,WAAW,CAAc;IACtD;AACF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "12.0.0-new-beta.
|
|
3
|
+
"version": "12.0.0-new-beta.2",
|
|
4
4
|
"description": "Client for Contentful's Content Management API",
|
|
5
5
|
"homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
|
|
6
6
|
"exports": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"docs:watch": "nodemon --exec npm run docs:dev -w lib typings",
|
|
44
44
|
"docs:publish": "npm run build:docs && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful-management.js contentful-management",
|
|
45
45
|
"lint": "eslint lib test",
|
|
46
|
-
"
|
|
46
|
+
"lint:fix": "eslint lib test --fix",
|
|
47
47
|
"test": "npm run test:unit:cover && npm run test:types && npm run test:integration:cover && npm run test:size",
|
|
48
48
|
"test:unit:cover": "npm run test:unit -- --coverage",
|
|
49
49
|
"test:unit": "npx vitest --project unit --run",
|
|
@@ -56,16 +56,12 @@
|
|
|
56
56
|
"test:version": "grep -r \"0.0.0-determined-by-semantic-release\" ./dist > /dev/null && echo \"version 0.0.0-determined-by-semantic-release found in output\" && exit 1 || exit 0",
|
|
57
57
|
"test:size": "size-limit",
|
|
58
58
|
"test:demo-projects": "npm run test:demo-node && npm run test:demo-browser",
|
|
59
|
-
"test:demo-node": "
|
|
60
|
-
"test:demo-browser": "
|
|
61
|
-
"
|
|
62
|
-
"format:fix": "prettier --write '**/*.{jsx,js,ts,tsx}'",
|
|
59
|
+
"test:demo-node": "npm ci --prefix ./test/output-integration/node && npm run test --prefix ./test/output-integration/node",
|
|
60
|
+
"test:demo-browser": "npm ci --prefix ./test/output-integration/browser && npm run setup-test-env --prefix ./test/output-integration/browser && npm run test --prefix ./test/output-integration/browser",
|
|
61
|
+
"format:fix": "npm run format:check -- --write",
|
|
63
62
|
"format:check": "prettier --check '**/*.{jsx,js,ts,tsx}'",
|
|
64
63
|
"semantic-release": "semantic-release",
|
|
65
|
-
"
|
|
66
|
-
"postpublish": "if [ \"$(git rev-parse --abbrev-ref HEAD)\" = master ] ; then npm run docs:publish && npm run clean ; else exit 0 ; fi",
|
|
67
|
-
"prepush": "npm run test:prepush",
|
|
68
|
-
"prepublishOnly": "npm run build && npm run test:version"
|
|
64
|
+
"prepare": "husky"
|
|
69
65
|
},
|
|
70
66
|
"files": [
|
|
71
67
|
"dist"
|
|
@@ -94,7 +90,7 @@
|
|
|
94
90
|
"@types/node": "^20.12.13",
|
|
95
91
|
"@vitest/browser": "^2.1.5",
|
|
96
92
|
"@vitest/coverage-v8": "^2.1.5",
|
|
97
|
-
"contentful-sdk-jsdoc": "3.1.
|
|
93
|
+
"contentful-sdk-jsdoc": "^3.1.5",
|
|
98
94
|
"cz-conventional-changelog": "^3.3.0",
|
|
99
95
|
"eslint": "^9.15.0",
|
|
100
96
|
"express": "^4.21.1",
|
|
@@ -125,9 +121,9 @@
|
|
|
125
121
|
}
|
|
126
122
|
},
|
|
127
123
|
"lint-staged": {
|
|
128
|
-
"
|
|
124
|
+
"./{lib,test}/**/*.{js,ts}": [
|
|
129
125
|
"prettier --write",
|
|
130
|
-
"eslint"
|
|
126
|
+
"eslint --fix"
|
|
131
127
|
],
|
|
132
128
|
"*.md": [
|
|
133
129
|
"prettier --write"
|