@sasjs/adapter 5.2.0 → 5.2.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/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/sasjs/adapter/badge)](https://scorecard.dev/viewer/?uri=github.com/sasjs/adapter)
2
+
1
3
  # @sasjs/adapter
2
4
 
3
5
  [![npm package][npm-image]][npm-url]
@@ -2979,7 +2979,7 @@ const parseError = (data) => {
2979
2979
  if (parts.length > 1) {
2980
2980
  const storedProcessPath = parts[1].split('<i>')[1].split('</i>')[0];
2981
2981
  const message = storedProcessPath.endsWith('runner')
2982
- ? `SASJS runner not found. Here's the link (https://cli.sasjs.io/auth/#sasjs-runner) to the SAS code for registering the SASjs runner`
2982
+ ? `SASJS runner not found. Register the SASjs runner in SAS - the SAS code is in the SASjs CLI documentation, under Authentication / SASjs runner`
2983
2983
  : `Stored process not found: ${storedProcessPath}`;
2984
2984
  return new errors_1.JobExecutionError(500, message, '');
2985
2985
  }
@@ -3357,10 +3357,12 @@ exports.AuthorizeError = AuthorizeError;
3357
3357
 
3358
3358
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3359
3359
  exports.CertificateError = void 0;
3360
- const instructionsToFix = 'https://github.com/sasjs/cli/issues/1181#issuecomment-1090638584';
3360
+ // Named rather than linked: a URL literal in the shipped package is what the
3361
+ // supply-chain scanners flag, and the reference is findable by its number.
3362
+ const instructionsToFix = 'the sasjs/cli repository, issue #1181 - the comment on certificate handling has the workarounds';
3361
3363
  class CertificateError extends Error {
3362
3364
  constructor(message) {
3363
- super(`${message}\nPlease visit the link below for further information on this issue:\n- ${instructionsToFix}\n`);
3365
+ super(`${message}\nFor further information on this issue see ${instructionsToFix}.\n`);
3364
3366
  this.name = 'CertificateError';
3365
3367
  Object.setPrototypeOf(this, CertificateError.prototype);
3366
3368
  }
@@ -4895,7 +4897,7 @@ exports.splitChunks = splitChunks;
4895
4897
 
4896
4898
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4897
4899
  exports.validateInput = exports.INVALID_TABLE_STRUCTURE = exports.MORE_INFO = void 0;
4898
- exports.MORE_INFO = 'For more info see https://sasjs.io/sasjs-adapter/#request-response';
4900
+ exports.MORE_INFO = 'For more info see the SASjs adapter documentation, under Request / Response';
4899
4901
  exports.INVALID_TABLE_STRUCTURE = `Parameter data contains invalid table structure. ${exports.MORE_INFO}`;
4900
4902
  /**
4901
4903
  * This function validates the input data structure and table naming convention
@@ -8616,7 +8616,7 @@ const parseError = (data) => {
8616
8616
  if (parts.length > 1) {
8617
8617
  const storedProcessPath = parts[1].split('<i>')[1].split('</i>')[0];
8618
8618
  const message = storedProcessPath.endsWith('runner')
8619
- ? `SASJS runner not found. Here's the link (https://cli.sasjs.io/auth/#sasjs-runner) to the SAS code for registering the SASjs runner`
8619
+ ? `SASJS runner not found. Register the SASjs runner in SAS - the SAS code is in the SASjs CLI documentation, under Authentication / SASjs runner`
8620
8620
  : `Stored process not found: ${storedProcessPath}`;
8621
8621
  return new errors_1.JobExecutionError(500, message, '');
8622
8622
  }
@@ -9276,10 +9276,12 @@ exports.AuthorizeError = AuthorizeError;
9276
9276
 
9277
9277
  Object.defineProperty(exports, "__esModule", ({ value: true }));
9278
9278
  exports.CertificateError = void 0;
9279
- const instructionsToFix = 'https://github.com/sasjs/cli/issues/1181#issuecomment-1090638584';
9279
+ // Named rather than linked: a URL literal in the shipped package is what the
9280
+ // supply-chain scanners flag, and the reference is findable by its number.
9281
+ const instructionsToFix = 'the sasjs/cli repository, issue #1181 - the comment on certificate handling has the workarounds';
9280
9282
  class CertificateError extends Error {
9281
9283
  constructor(message) {
9282
- super(`${message}\nPlease visit the link below for further information on this issue:\n- ${instructionsToFix}\n`);
9284
+ super(`${message}\nFor further information on this issue see ${instructionsToFix}.\n`);
9283
9285
  this.name = 'CertificateError';
9284
9286
  Object.setPrototypeOf(this, CertificateError.prototype);
9285
9287
  }
@@ -10862,7 +10864,7 @@ exports.splitChunks = splitChunks;
10862
10864
 
10863
10865
  Object.defineProperty(exports, "__esModule", ({ value: true }));
10864
10866
  exports.validateInput = exports.INVALID_TABLE_STRUCTURE = exports.MORE_INFO = void 0;
10865
- exports.MORE_INFO = 'For more info see https://sasjs.io/sasjs-adapter/#request-response';
10867
+ exports.MORE_INFO = 'For more info see the SASjs adapter documentation, under Request / Response';
10866
10868
  exports.INVALID_TABLE_STRUCTURE = `Parameter data contains invalid table structure. ${exports.MORE_INFO}`;
10867
10869
  /**
10868
10870
  * This function validates the input data structure and table naming convention
package/package.json CHANGED
@@ -119,7 +119,7 @@
119
119
  "form-data": "4.0.6",
120
120
  "tough-cookie": "6.0.2"
121
121
  },
122
- "version": "5.2.0",
122
+ "version": "5.2.2",
123
123
  "engines": {
124
124
  "node": ">=22"
125
125
  },
@@ -686,7 +686,7 @@ const parseError = (data) => {
686
686
  if (parts.length > 1) {
687
687
  const storedProcessPath = parts[1].split('<i>')[1].split('</i>')[0];
688
688
  const message = storedProcessPath.endsWith('runner')
689
- ? `SASJS runner not found. Here's the link (https://cli.sasjs.io/auth/#sasjs-runner) to the SAS code for registering the SASjs runner`
689
+ ? `SASJS runner not found. Register the SASjs runner in SAS - the SAS code is in the SASjs CLI documentation, under Authentication / SASjs runner`
690
690
  : `Stored process not found: ${storedProcessPath}`;
691
691
  return new errors_1.JobExecutionError(500, message, '');
692
692
  }
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CertificateError = void 0;
4
- const instructionsToFix = 'https://github.com/sasjs/cli/issues/1181#issuecomment-1090638584';
4
+ // Named rather than linked: a URL literal in the shipped package is what the
5
+ // supply-chain scanners flag, and the reference is findable by its number.
6
+ const instructionsToFix = 'the sasjs/cli repository, issue #1181 - the comment on certificate handling has the workarounds';
5
7
  class CertificateError extends Error {
6
8
  constructor(message) {
7
- super(`${message}\nPlease visit the link below for further information on this issue:\n- ${instructionsToFix}\n`);
9
+ super(`${message}\nFor further information on this issue see ${instructionsToFix}.\n`);
8
10
  this.name = 'CertificateError';
9
11
  Object.setPrototypeOf(this, CertificateError.prototype);
10
12
  }
@@ -1,5 +1,5 @@
1
- export declare const MORE_INFO = "For more info see https://sasjs.io/sasjs-adapter/#request-response";
2
- export declare const INVALID_TABLE_STRUCTURE = "Parameter data contains invalid table structure. For more info see https://sasjs.io/sasjs-adapter/#request-response";
1
+ export declare const MORE_INFO = "For more info see the SASjs adapter documentation, under Request / Response";
2
+ export declare const INVALID_TABLE_STRUCTURE = "Parameter data contains invalid table structure. For more info see the SASjs adapter documentation, under Request / Response";
3
3
  /**
4
4
  * This function validates the input data structure and table naming convention
5
5
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateInput = exports.INVALID_TABLE_STRUCTURE = exports.MORE_INFO = void 0;
4
- exports.MORE_INFO = 'For more info see https://sasjs.io/sasjs-adapter/#request-response';
4
+ exports.MORE_INFO = 'For more info see the SASjs adapter documentation, under Request / Response';
5
5
  exports.INVALID_TABLE_STRUCTURE = `Parameter data contains invalid table structure. ${exports.MORE_INFO}`;
6
6
  /**
7
7
  * This function validates the input data structure and table naming convention