safesafar-common 1.0.49 → 1.0.51

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/index.js CHANGED
@@ -377,13 +377,12 @@ var exceptionFactory = /* @__PURE__ */ __name((errors) => {
377
377
  var import_fs = require("fs");
378
378
  var import_path = require("path");
379
379
  var mergeSchema = /* @__PURE__ */ __name((sharedSchemas2) => {
380
+ const STARTING_POINT = "######################## Shared Schema #########################";
380
381
  const HEADING_TEXT = `
381
382
 
382
383
 
383
- ######################## Shared Schema ###########################
384
-
385
- DO NOT MODIFY SHARED SCHEMA HERE - UPDATE NPM PACKAGE
386
-
384
+ ${STARTING_POINT}
385
+ # DO NOT MODIFY SHARED SCHEMA HERE - UPDATE NPM PACKAGE
387
386
  ################################################################`;
388
387
  const sharedSchemasString = sharedSchemas2.join("\n").trim();
389
388
  const globalGraphqlPath = (0, import_path.join)("src", "app.global.graphql");
@@ -392,7 +391,7 @@ DO NOT MODIFY SHARED SCHEMA HERE - UPDATE NPM PACKAGE
392
391
  existingSchema = (0, import_fs.readFileSync)(globalGraphqlPath, "utf-8") ?? "";
393
392
  }
394
393
  existingSchema = existingSchema || "";
395
- const sharedSchemaHeader = "######################## Shared Schema ###########################";
394
+ const sharedSchemaHeader = STARTING_POINT;
396
395
  const updatedSchema = existingSchema.includes(sharedSchemaHeader) ? existingSchema?.split(sharedSchemaHeader)[0]?.trim() : existingSchema.trim();
397
396
  const finalSchema = `${updatedSchema}${HEADING_TEXT}
398
397
  ${sharedSchemasString}
package/dist/index.mjs CHANGED
@@ -327,13 +327,12 @@ var exceptionFactory = /* @__PURE__ */ __name((errors) => {
327
327
  import { readFileSync, writeFileSync, existsSync } from "fs";
328
328
  import { join } from "path";
329
329
  var mergeSchema = /* @__PURE__ */ __name((sharedSchemas2) => {
330
+ const STARTING_POINT = "######################## Shared Schema #########################";
330
331
  const HEADING_TEXT = `
331
332
 
332
333
 
333
- ######################## Shared Schema ###########################
334
-
335
- DO NOT MODIFY SHARED SCHEMA HERE - UPDATE NPM PACKAGE
336
-
334
+ ${STARTING_POINT}
335
+ # DO NOT MODIFY SHARED SCHEMA HERE - UPDATE NPM PACKAGE
337
336
  ################################################################`;
338
337
  const sharedSchemasString = sharedSchemas2.join("\n").trim();
339
338
  const globalGraphqlPath = join("src", "app.global.graphql");
@@ -342,7 +341,7 @@ DO NOT MODIFY SHARED SCHEMA HERE - UPDATE NPM PACKAGE
342
341
  existingSchema = readFileSync(globalGraphqlPath, "utf-8") ?? "";
343
342
  }
344
343
  existingSchema = existingSchema || "";
345
- const sharedSchemaHeader = "######################## Shared Schema ###########################";
344
+ const sharedSchemaHeader = STARTING_POINT;
346
345
  const updatedSchema = existingSchema.includes(sharedSchemaHeader) ? existingSchema?.split(sharedSchemaHeader)[0]?.trim() : existingSchema.trim();
347
346
  const finalSchema = `${updatedSchema}${HEADING_TEXT}
348
347
  ${sharedSchemasString}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "safesafar-common",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Common library for SafeSafar",
5
5
  "keywords": [],
6
6
  "author": "SafeSafar",