@slicemachine/init 2.6.0 → 2.6.1-dev-next-release.1

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.
Files changed (112) hide show
  1. package/dist/SliceMachineInitProcess.cjs +8 -2
  2. package/dist/SliceMachineInitProcess.cjs.map +1 -1
  3. package/dist/SliceMachineInitProcess.js +9 -3
  4. package/dist/SliceMachineInitProcess.js.map +1 -1
  5. package/dist/_node_modules/@babel/code-frame/lib/index.cjs +2 -2
  6. package/dist/_node_modules/@babel/code-frame/lib/index.js +2 -2
  7. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +1 -1
  8. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +1 -1
  9. package/dist/_node_modules/@babel/highlight/lib/index.cjs +3 -3
  10. package/dist/_node_modules/@babel/highlight/lib/index.js +3 -3
  11. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +1 -1
  12. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +1 -1
  13. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +1 -1
  14. package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +1 -1
  15. package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs +1 -1
  16. package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js +1 -1
  17. package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs +1 -1
  18. package/dist/_node_modules/@nodelib/fs.stat/out/index.js +1 -1
  19. package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs +1 -1
  20. package/dist/_node_modules/@nodelib/fs.walk/out/index.js +1 -1
  21. package/dist/_node_modules/cross-spawn/index.cjs +1 -1
  22. package/dist/_node_modules/cross-spawn/index.js +1 -1
  23. package/dist/_node_modules/dir-glob/index.cjs +2 -2
  24. package/dist/_node_modules/dir-glob/index.js +2 -2
  25. package/dist/_node_modules/fast-glob/out/index.cjs +1 -1
  26. package/dist/_node_modules/fast-glob/out/index.js +1 -1
  27. package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +1 -1
  28. package/dist/_node_modules/fast-glob/out/managers/tasks.js +1 -1
  29. package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +1 -1
  30. package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +1 -1
  31. package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +1 -1
  32. package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +1 -1
  33. package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +1 -1
  34. package/dist/_node_modules/fast-glob/out/providers/filters/error.js +1 -1
  35. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +1 -1
  36. package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +1 -1
  37. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +1 -1
  38. package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +1 -1
  39. package/dist/_node_modules/fast-glob/out/readers/async.cjs +1 -1
  40. package/dist/_node_modules/fast-glob/out/readers/async.js +1 -1
  41. package/dist/_node_modules/fast-glob/out/readers/reader.cjs +2 -2
  42. package/dist/_node_modules/fast-glob/out/readers/reader.js +2 -2
  43. package/dist/_node_modules/fast-glob/out/readers/stream.cjs +2 -2
  44. package/dist/_node_modules/fast-glob/out/readers/stream.js +2 -2
  45. package/dist/_node_modules/fast-glob/out/readers/sync.cjs +2 -2
  46. package/dist/_node_modules/fast-glob/out/readers/sync.js +2 -2
  47. package/dist/_node_modules/fast-glob/out/utils/index.cjs +1 -1
  48. package/dist/_node_modules/fast-glob/out/utils/index.js +1 -1
  49. package/dist/_node_modules/get-stream/index.cjs +1 -1
  50. package/dist/_node_modules/get-stream/index.js +1 -1
  51. package/dist/_node_modules/js-tokens/index.cjs +1 -1
  52. package/dist/_node_modules/js-tokens/index.js +1 -1
  53. package/dist/_node_modules/lines-and-columns/build/index.cjs +1 -1
  54. package/dist/_node_modules/lines-and-columns/build/index.js +1 -1
  55. package/dist/_node_modules/map-obj/index.cjs +1 -1
  56. package/dist/_node_modules/map-obj/index.js +1 -1
  57. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs +1 -1
  58. package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js +1 -1
  59. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +1 -1
  60. package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +1 -1
  61. package/dist/_node_modules/parse-json/index.cjs +2 -2
  62. package/dist/_node_modules/parse-json/index.js +2 -2
  63. package/dist/_node_modules/path-key/index.cjs +1 -1
  64. package/dist/_node_modules/path-key/index.js +1 -1
  65. package/dist/_node_modules/path-type/index.cjs +1 -1
  66. package/dist/_node_modules/path-type/index.js +1 -1
  67. package/dist/_node_modules/signal-exit/index.cjs +1 -1
  68. package/dist/_node_modules/signal-exit/index.js +1 -1
  69. package/dist/_virtual/index10.cjs +2 -2
  70. package/dist/_virtual/index10.js +2 -2
  71. package/dist/_virtual/index11.cjs +2 -2
  72. package/dist/_virtual/index11.js +2 -2
  73. package/dist/_virtual/index12.cjs +2 -2
  74. package/dist/_virtual/index12.js +2 -2
  75. package/dist/_virtual/index13.cjs +2 -2
  76. package/dist/_virtual/index13.js +2 -2
  77. package/dist/_virtual/index14.cjs +2 -2
  78. package/dist/_virtual/index14.js +2 -2
  79. package/dist/_virtual/index15.cjs +2 -2
  80. package/dist/_virtual/index15.js +2 -2
  81. package/dist/_virtual/index16.cjs +2 -2
  82. package/dist/_virtual/index16.js +2 -2
  83. package/dist/_virtual/index17.cjs +2 -2
  84. package/dist/_virtual/index17.js +2 -2
  85. package/dist/_virtual/index18.cjs +2 -2
  86. package/dist/_virtual/index18.js +2 -2
  87. package/dist/_virtual/index19.cjs +2 -2
  88. package/dist/_virtual/index19.js +2 -2
  89. package/dist/_virtual/index3.cjs +2 -2
  90. package/dist/_virtual/index3.js +2 -2
  91. package/dist/_virtual/index4.cjs +2 -2
  92. package/dist/_virtual/index4.js +2 -2
  93. package/dist/_virtual/index5.cjs +2 -2
  94. package/dist/_virtual/index5.js +2 -2
  95. package/dist/_virtual/index6.cjs +2 -2
  96. package/dist/_virtual/index6.js +2 -2
  97. package/dist/_virtual/index7.cjs +2 -2
  98. package/dist/_virtual/index7.js +2 -2
  99. package/dist/_virtual/index8.cjs +2 -2
  100. package/dist/_virtual/index8.js +2 -2
  101. package/dist/_virtual/index9.cjs +2 -2
  102. package/dist/_virtual/index9.js +2 -2
  103. package/dist/constants.cjs +2 -0
  104. package/dist/constants.cjs.map +1 -1
  105. package/dist/constants.d.ts +1 -0
  106. package/dist/constants.js +2 -0
  107. package/dist/constants.js.map +1 -1
  108. package/dist/packages/init/package.json.cjs +5 -5
  109. package/dist/packages/init/package.json.js +5 -5
  110. package/package.json +5 -5
  111. package/src/SliceMachineInitProcess.ts +9 -2
  112. package/src/constants.ts +1 -0
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var lib = {};
4
- exports.__exports = lib;
3
+ var mapObj = { exports: {} };
4
+ exports.__module = mapObj;
5
5
  //# sourceMappingURL=index7.cjs.map
@@ -1,5 +1,5 @@
1
- var lib = {};
1
+ var mapObj = { exports: {} };
2
2
  export {
3
- lib as __exports
3
+ mapObj as __module
4
4
  };
5
5
  //# sourceMappingURL=index7.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var hostedGitInfo = { exports: {} };
4
- exports.__module = hostedGitInfo;
3
+ var signalExit = { exports: {} };
4
+ exports.__module = signalExit;
5
5
  //# sourceMappingURL=index8.cjs.map
@@ -1,5 +1,5 @@
1
- var hostedGitInfo = { exports: {} };
1
+ var signalExit = { exports: {} };
2
2
  export {
3
- hostedGitInfo as __module
3
+ signalExit as __module
4
4
  };
5
5
  //# sourceMappingURL=index8.js.map
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var jsTokens = {};
4
- exports.__exports = jsTokens;
3
+ var getStream = { exports: {} };
4
+ exports.__module = getStream;
5
5
  //# sourceMappingURL=index9.cjs.map
@@ -1,5 +1,5 @@
1
- var jsTokens = {};
1
+ var getStream = { exports: {} };
2
2
  export {
3
- jsTokens as __exports
3
+ getStream as __module
4
4
  };
5
5
  //# sourceMappingURL=index9.js.map
@@ -4,8 +4,10 @@ const START_SCRIPT_KEY = "slicemachine";
4
4
  const START_SCRIPT_VALUE = "start-slicemachine";
5
5
  const GIGET_PROVIDER = "github";
6
6
  const GIGET_ORGANIZATION = "prismicio-community";
7
+ const SLICE_MACHINE_INIT_USER_AGENT = "slice-machine-init";
7
8
  exports.GIGET_ORGANIZATION = GIGET_ORGANIZATION;
8
9
  exports.GIGET_PROVIDER = GIGET_PROVIDER;
10
+ exports.SLICE_MACHINE_INIT_USER_AGENT = SLICE_MACHINE_INIT_USER_AGENT;
9
11
  exports.START_SCRIPT_KEY = START_SCRIPT_KEY;
10
12
  exports.START_SCRIPT_VALUE = START_SCRIPT_VALUE;
11
13
  //# sourceMappingURL=constants.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.cjs","sources":["../../src/constants.ts"],"sourcesContent":["// Those contants should be unique to the init script, if they are needed elsewhere then they should be extracted to the manager\nexport const START_SCRIPT_KEY = \"slicemachine\";\nexport const START_SCRIPT_VALUE = \"start-slicemachine\";\nexport const GIGET_PROVIDER = \"github\";\nexport const GIGET_ORGANIZATION = \"prismicio-community\";\n"],"names":[],"mappings":";;AACO,MAAM,mBAAmB;AACzB,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AACvB,MAAM,qBAAqB;;;;;"}
1
+ {"version":3,"file":"constants.cjs","sources":["../../src/constants.ts"],"sourcesContent":["// Those contants should be unique to the init script, if they are needed elsewhere then they should be extracted to the manager\nexport const START_SCRIPT_KEY = \"slicemachine\";\nexport const START_SCRIPT_VALUE = \"start-slicemachine\";\nexport const GIGET_PROVIDER = \"github\";\nexport const GIGET_ORGANIZATION = \"prismicio-community\";\nexport const SLICE_MACHINE_INIT_USER_AGENT = \"slice-machine-init\";\n"],"names":[],"mappings":";;AACO,MAAM,mBAAmB;AACzB,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AACvB,MAAM,qBAAqB;AAC3B,MAAM,gCAAgC;;;;;;"}
@@ -2,3 +2,4 @@ export declare const START_SCRIPT_KEY = "slicemachine";
2
2
  export declare const START_SCRIPT_VALUE = "start-slicemachine";
3
3
  export declare const GIGET_PROVIDER = "github";
4
4
  export declare const GIGET_ORGANIZATION = "prismicio-community";
5
+ export declare const SLICE_MACHINE_INIT_USER_AGENT = "slice-machine-init";
package/dist/constants.js CHANGED
@@ -2,9 +2,11 @@ const START_SCRIPT_KEY = "slicemachine";
2
2
  const START_SCRIPT_VALUE = "start-slicemachine";
3
3
  const GIGET_PROVIDER = "github";
4
4
  const GIGET_ORGANIZATION = "prismicio-community";
5
+ const SLICE_MACHINE_INIT_USER_AGENT = "slice-machine-init";
5
6
  export {
6
7
  GIGET_ORGANIZATION,
7
8
  GIGET_PROVIDER,
9
+ SLICE_MACHINE_INIT_USER_AGENT,
8
10
  START_SCRIPT_KEY,
9
11
  START_SCRIPT_VALUE
10
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["// Those contants should be unique to the init script, if they are needed elsewhere then they should be extracted to the manager\nexport const START_SCRIPT_KEY = \"slicemachine\";\nexport const START_SCRIPT_VALUE = \"start-slicemachine\";\nexport const GIGET_PROVIDER = \"github\";\nexport const GIGET_ORGANIZATION = \"prismicio-community\";\n"],"names":[],"mappings":"AACO,MAAM,mBAAmB;AACzB,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AACvB,MAAM,qBAAqB;"}
1
+ {"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["// Those contants should be unique to the init script, if they are needed elsewhere then they should be extracted to the manager\nexport const START_SCRIPT_KEY = \"slicemachine\";\nexport const START_SCRIPT_VALUE = \"start-slicemachine\";\nexport const GIGET_PROVIDER = \"github\";\nexport const GIGET_ORGANIZATION = \"prismicio-community\";\nexport const SLICE_MACHINE_INIT_USER_AGENT = \"slice-machine-init\";\n"],"names":[],"mappings":"AACO,MAAM,mBAAmB;AACzB,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AACvB,MAAM,qBAAqB;AAC3B,MAAM,gCAAgC;"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const name = "@slicemachine/init";
4
- const version = "2.6.0";
4
+ const version = "2.6.1-dev-next-release.1";
5
5
  const description = "Init Prismic Slice Machine in your project";
6
6
  const keywords = [
7
7
  "typescript",
@@ -42,7 +42,7 @@ const scripts = {
42
42
  dev: "vite build --watch",
43
43
  format: "prettier --write .",
44
44
  lint: "eslint --max-warnings 0 --ext .js,.ts .",
45
- prepack: "npm run build",
45
+ prepack: "$npm_execpath run build",
46
46
  size: "size-limit",
47
47
  test: "yarn lint && yarn types && yarn unit && yarn build && yarn size",
48
48
  types: "tsc --noEmit",
@@ -54,7 +54,7 @@ const scripts = {
54
54
  const dependencies = {
55
55
  "@antfu/ni": "^0.20.0",
56
56
  "@lihbr/listr-update-renderer": "^0.5.3",
57
- "@slicemachine/manager": "^0.10.0",
57
+ "@slicemachine/manager": "^0.10.1-dev-next-release.1",
58
58
  chalk: "^4.1.2",
59
59
  giget: "^1.1.2",
60
60
  globby: "^13.1.3",
@@ -67,7 +67,7 @@ const dependencies = {
67
67
  };
68
68
  const devDependencies = {
69
69
  "@size-limit/preset-small-lib": "8.2.4",
70
- "@slicemachine/plugin-kit": "0.4.13",
70
+ "@slicemachine/plugin-kit": "0.4.14-dev-next-release.1",
71
71
  "@types/listr": "0.14.4",
72
72
  "@types/prompts": "2.4.3",
73
73
  "@types/semver": "7.3.13",
@@ -93,7 +93,7 @@ const devDependencies = {
93
93
  "vite-plugin-sdk": "0.1.1",
94
94
  vitest: "0.32.0"
95
95
  };
96
- const gitHead = "0d02cf8d23c5493c34ed49d434cfae044cb30b34";
96
+ const gitHead = "f644a4a911f92239b322857bf91607f21be396df";
97
97
  const pkg = {
98
98
  name,
99
99
  version,
@@ -1,5 +1,5 @@
1
1
  const name = "@slicemachine/init";
2
- const version = "2.6.0";
2
+ const version = "2.6.1-dev-next-release.1";
3
3
  const description = "Init Prismic Slice Machine in your project";
4
4
  const keywords = [
5
5
  "typescript",
@@ -40,7 +40,7 @@ const scripts = {
40
40
  dev: "vite build --watch",
41
41
  format: "prettier --write .",
42
42
  lint: "eslint --max-warnings 0 --ext .js,.ts .",
43
- prepack: "npm run build",
43
+ prepack: "$npm_execpath run build",
44
44
  size: "size-limit",
45
45
  test: "yarn lint && yarn types && yarn unit && yarn build && yarn size",
46
46
  types: "tsc --noEmit",
@@ -52,7 +52,7 @@ const scripts = {
52
52
  const dependencies = {
53
53
  "@antfu/ni": "^0.20.0",
54
54
  "@lihbr/listr-update-renderer": "^0.5.3",
55
- "@slicemachine/manager": "^0.10.0",
55
+ "@slicemachine/manager": "^0.10.1-dev-next-release.1",
56
56
  chalk: "^4.1.2",
57
57
  giget: "^1.1.2",
58
58
  globby: "^13.1.3",
@@ -65,7 +65,7 @@ const dependencies = {
65
65
  };
66
66
  const devDependencies = {
67
67
  "@size-limit/preset-small-lib": "8.2.4",
68
- "@slicemachine/plugin-kit": "0.4.13",
68
+ "@slicemachine/plugin-kit": "0.4.14-dev-next-release.1",
69
69
  "@types/listr": "0.14.4",
70
70
  "@types/prompts": "2.4.3",
71
71
  "@types/semver": "7.3.13",
@@ -91,7 +91,7 @@ const devDependencies = {
91
91
  "vite-plugin-sdk": "0.1.1",
92
92
  vitest: "0.32.0"
93
93
  };
94
- const gitHead = "0d02cf8d23c5493c34ed49d434cfae044cb30b34";
94
+ const gitHead = "f644a4a911f92239b322857bf91607f21be396df";
95
95
  const pkg = {
96
96
  name,
97
97
  version,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slicemachine/init",
3
- "version": "2.6.0",
3
+ "version": "2.6.1-dev-next-release.1",
4
4
  "description": "Init Prismic Slice Machine in your project",
5
5
  "keywords": [
6
6
  "typescript",
@@ -41,7 +41,7 @@
41
41
  "dev": "vite build --watch",
42
42
  "format": "prettier --write .",
43
43
  "lint": "eslint --max-warnings 0 --ext .js,.ts .",
44
- "prepack": "npm run build",
44
+ "prepack": "$npm_execpath run build",
45
45
  "size": "size-limit",
46
46
  "test": "yarn lint && yarn types && yarn unit && yarn build && yarn size",
47
47
  "types": "tsc --noEmit",
@@ -53,7 +53,7 @@
53
53
  "dependencies": {
54
54
  "@antfu/ni": "^0.20.0",
55
55
  "@lihbr/listr-update-renderer": "^0.5.3",
56
- "@slicemachine/manager": "^0.10.0",
56
+ "@slicemachine/manager": "^0.10.1-dev-next-release.1",
57
57
  "chalk": "^4.1.2",
58
58
  "giget": "^1.1.2",
59
59
  "globby": "^13.1.3",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@size-limit/preset-small-lib": "8.2.4",
69
- "@slicemachine/plugin-kit": "0.4.13",
69
+ "@slicemachine/plugin-kit": "0.4.14-dev-next-release.1",
70
70
  "@types/listr": "0.14.4",
71
71
  "@types/prompts": "2.4.3",
72
72
  "@types/semver": "7.3.13",
@@ -92,5 +92,5 @@
92
92
  "vite-plugin-sdk": "0.1.1",
93
93
  "vitest": "0.32.0"
94
94
  },
95
- "gitHead": "0d02cf8d23c5493c34ed49d434cfae044cb30b34"
95
+ "gitHead": "f644a4a911f92239b322857bf91607f21be396df"
96
96
  }
@@ -36,6 +36,7 @@ import { assertExists } from "./lib/assertExists";
36
36
  import {
37
37
  GIGET_ORGANIZATION,
38
38
  GIGET_PROVIDER,
39
+ SLICE_MACHINE_INIT_USER_AGENT,
39
40
  START_SCRIPT_KEY,
40
41
  START_SCRIPT_VALUE,
41
42
  } from "./constants";
@@ -1122,7 +1123,10 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
1122
1123
  task.title = `Pushing slices... (0/${slices.length})`;
1123
1124
  await Promise.all(
1124
1125
  slices.map(async (slice) => {
1125
- await this.manager.slices.pushSlice(slice);
1126
+ await this.manager.slices.pushSlice({
1127
+ ...slice,
1128
+ userAgent: SLICE_MACHINE_INIT_USER_AGENT,
1129
+ });
1126
1130
  pushed++;
1127
1131
  task.title = `Pushing slices... (${pushed}/${slices.length})`;
1128
1132
  }),
@@ -1163,7 +1167,10 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
1163
1167
  task.title = `Pushing types... (0/${ids.length})`;
1164
1168
  await Promise.all(
1165
1169
  ids.map(async (id) => {
1166
- await this.manager.customTypes.pushCustomType({ id });
1170
+ await this.manager.customTypes.pushCustomType({
1171
+ id,
1172
+ userAgent: SLICE_MACHINE_INIT_USER_AGENT,
1173
+ });
1167
1174
  pushed++;
1168
1175
  task.title = `Pushing types... (${pushed}/${ids.length})`;
1169
1176
  }),
package/src/constants.ts CHANGED
@@ -3,3 +3,4 @@ export const START_SCRIPT_KEY = "slicemachine";
3
3
  export const START_SCRIPT_VALUE = "start-slicemachine";
4
4
  export const GIGET_PROVIDER = "github";
5
5
  export const GIGET_ORGANIZATION = "prismicio-community";
6
+ export const SLICE_MACHINE_INIT_USER_AGENT = "slice-machine-init";