@envoy/envoy-integrations-sdk 2.3.0 → 2.3.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvoyAPI.d.ts","sourceRoot":"","sources":["../../src/base/EnvoyAPI.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,WAAW,MAAM,8BAA8B,CAAC;AAIvD,UAAU,qBAAsB,SAAQ,WAAW;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAWD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B;;OAEG;IACH,QAAQ,CAAC,KAAK,gCAUX;IAEH;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,UAAU,iDAU3B;gBAEU,WAAW,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"EnvoyAPI.d.ts","sourceRoot":"","sources":["../../src/base/EnvoyAPI.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,WAAW,MAAM,8BAA8B,CAAC;AAIvD,UAAU,qBAAsB,SAAQ,WAAW;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAWD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B;;OAEG;IACH,QAAQ,CAAC,KAAK,gCAUX;IAEH;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,UAAU,iDAU3B;gBAEU,WAAW,EAAE,MAAM;CA6BhC"}
|
package/dist/base/EnvoyAPI.js
CHANGED
|
@@ -107,6 +107,9 @@ var EnvoyAPI = /** @class */ (function () {
|
|
|
107
107
|
(included || [])
|
|
108
108
|
.concat(modelOrModels)
|
|
109
109
|
.forEach(function (model) {
|
|
110
|
+
if (!model) {
|
|
111
|
+
throw new Error('The data you are looking for may not exist.');
|
|
112
|
+
}
|
|
110
113
|
_this.dataLoader.prime({ type: model.type, id: model.id }, model);
|
|
111
114
|
var alias = TYPE_ALIASES.get(model.type);
|
|
112
115
|
if (alias) {
|
package/package.json
CHANGED
package/src/base/EnvoyAPI.ts
CHANGED
|
@@ -75,6 +75,9 @@ export default class EnvoyAPI {
|
|
|
75
75
|
(included || [])
|
|
76
76
|
.concat(modelOrModels)
|
|
77
77
|
.forEach((model: JSONAPIData) => {
|
|
78
|
+
if (!model) {
|
|
79
|
+
throw new Error('The data you are looking for may not exist.');
|
|
80
|
+
}
|
|
78
81
|
this.dataLoader.prime({ type: model.type, id: model.id }, model);
|
|
79
82
|
const alias = TYPE_ALIASES.get(model.type);
|
|
80
83
|
if (alias) {
|