Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apollosproject/apollo-server-env-mock

Package Overview
Dependencies
Maintainers
2
Versions
410
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollosproject/apollo-server-env-mock - npm Package Compare versions

Comparing version 0.8.0-alpha.4 to 0.8.0-alpha.5

28

lib/apollo-datasource-mocks/bible.js

@@ -8,3 +8,3 @@ "use strict";

var _default = () => ({
var _default = () => [{
data: {

@@ -22,5 +22,27 @@ passages: [{

}
});
}, {
data: {
passages: [{
id: '1PE.1.1',
orgId: '1PE.1.1',
bibleId: '9879dbb7cfe39e4d-01',
bookId: '1PE',
chapterIds: ['1PE.1'],
reference: '1 Peter 1:1',
content: '<p class="p"><span data-number="1" class="v">1</span>Peter, an apostle of Jesus Christ, to the chosen ones who are living as foreigners in the Dispersion in Pontus, Galatia, Cappadocia, Asia, and Bithynia, </p>',
copyright: 'PUBLIC DOMAIN'
}, {
id: 'JHN.3.16',
orgId: 'JHN.3.16',
bibleId: '9879dbb7cfe39e4d-01',
bookId: 'JHN',
chapterIds: ['JHN.3'],
reference: 'John 3:16',
content: '<p class="p"><span data-number="16" class="v">16</span><span class="wj">For God so loved the world, that he gave his one and only Son, that whoever believes in him should not perish, but have eternal life. </span></p>',
copyright: 'PUBLIC DOMAIN'
}]
}
}];
exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcG9sbG8tZGF0YXNvdXJjZS1tb2Nrcy9iaWJsZS5qcyJdLCJuYW1lcyI6WyJkYXRhIiwicGFzc2FnZXMiLCJpZCIsIm9yZ0lkIiwiYmlibGVJZCIsImJvb2tJZCIsImNoYXB0ZXJJZHMiLCJyZWZlcmVuY2UiLCJjb250ZW50IiwiY29weXJpZ2h0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7O2VBQWUsT0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cIndqXCI+Rm9yIEdvZCBzbyBsb3ZlZCB0aGUgd29ybGQsIHRoYXQgaGUgZ2F2ZSBoaXMgb25lIGFuZCBvbmx5IFNvbiwgdGhhdCB3aG9ldmVyIGJlbGlldmVzIGluIGhpbSBzaG91bGQgbm90IHBlcmlzaCwgYnV0IGhhdmUgZXRlcm5hbCBsaWZlLiA8L3NwYW4+PC9wPicsXG4gICAgICAgICAgY29weXJpZ2h0OiAnUFVCTElDIERPTUFJTicsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH0sXG4gIH0sXG5dO1xuIl19

10

lib/index.js

@@ -38,3 +38,7 @@ "use strict";

if (request.url.match('api.scripture.api.bible')) {
return resolveWith(apolloDatasourceMocks.Scripture(), request.url);
if (request.url.includes('and')) {
return resolveWith(apolloDatasourceMocks.Scripture()[1], request.url);
}
return resolveWith(apolloDatasourceMocks.Scripture()[0], request.url);
}

@@ -55,3 +59,3 @@

if (request.url.match('/api.scripture.api.bible/v1')) {
return resolveWith(apolloDatasourceMocks.Scripture());
return resolveWith(apolloDatasourceMocks.Scripture()[0]);
}

@@ -268,2 +272,2 @@

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjcmVhdGVBcG9sbG9TZXJ2ZXJFbnZNb2NrIiwiYXBvbGxvU2VydmVyRW52IiwiUmVzcG9uc2UiLCJyZXNvbHZlV2l0aCIsImRhdGEiLCJ1cmwiLCJQcm9taXNlIiwicmVzb2x2ZSIsIkpTT04iLCJzdHJpbmdpZnkiLCJzdGF0dXMiLCJzdGF0dXNUZXh0IiwiaGVhZGVycyIsIkhlYWRlcnMiLCJmZXRjaCIsIm1vY2tMaXZlRGF0YVNvdXJjZUFwaXMiLCJtb2NrSW1wbGVtZW50YXRpb24iLCJyZXF1ZXN0IiwibWF0Y2giLCJhcG9sbG9EYXRhc291cmNlTW9ja3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iAgICAgICAgICBbXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIElkOiAyMDEsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIF0sXG4gICAgICAgICAgdXJsXG4gICAgICAgICk7XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9JbnRlcmFjdGlvbkNoYW5uZWxzJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFxuICAgICAgICAgIFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgSWQ6IDEwLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICBdLFxuICAgICAgICAgIHVybFxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvSW50ZXJhY3Rpb25Db21wb25lbnRzJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFxuICAgICAgICAgIFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgSWQ6IDEwMSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgXSxcbiAgICAgICAgICB1cmxcbiAgICAgICAgKTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0NvbnRlbnRDaGFubmVscy9cXFxcZCcpKSB7XG4gICAgICAgIHJldHVybiByZXNvbHZlV2l0aChyb2NrTW9ja3MuY29udGVudENoYW5uZWwoKSk7XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9Hcm91cHMvR2V0RmFtaWxpZXMvXFxcXGQnKSkge1xuICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgocm9ja01vY2tzLmZhbWlsaWVzKCkpO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvQ29udGVudENoYW5uZWxzJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtyb2NrTW9ja3MuY29udGVudENoYW5uZWwoKV0pO1xu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SB7XG4gICAgICAgIGlmIChyZXF1ZXN0Lm1ldGhvZCA9PT0gJ0dFVCcpIHtcbiAgICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgoW3JvY2tNb2Nrcy5mb2xsb3dpbmdzKCldKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAocmVxdWVzdC5tZXRob2QgPT09ICdQT1NUJykge1xuICAgICAgICAgIGNvbnN0IHJlc3BvbnNlID0gbmV3IFJlc3BvbnNlKCcxMjMnLCB7XG4gICAgICAgICAgICBzdGF0dXM6IDIwMCxcbiAgICAgICAgICAgIHN0YXR1c1RleHQ6ICdPSycsXG4gICAgICAgICAgICBoZWFkZXJzOiBuZXcgYXBvbGxvU2VydmVyRW52LkhlYWRlcnMoe1xuICAgICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL2pzb24nLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXNwb25zZSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHJlcXVlc3QubWV0aG9kID09PSAnREVMRVRFJykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdEZWxldGluZyBmb2xsb3dpbmcnKTtcbiAgICAgICAgICBjb25zdCByZXNwb25zZSA9IG5ldyBSZXNwb25zZShudWxsLCB7XG4gICAgICAgICAgICBzdGF0dXM6IDIwNCxcbiAgICAgICAgICAgIGhlYWRlcnM6IG5ldyBhcG9sbG9TZXJ2ZXJFbnYuSGVhZGVycyh7XG4gICAgICAgICAgICAgICdDb250ZW50LVR5cGUnOiBudWxsLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXNwb25zZSk7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0ludGVyYWN0aW9uU2Vzc2lvbnMnKSkge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0eSA9IHVybCAvLyBpZGVudGl0eSA9IFVzZXJOYW1lXG4gICAgICAgICAgLnNwbGl0KCdlcScpXG4gICAgICAgICAgLnBvcCgpXG4gICAgICAgICAgLnRyaW0oJyAnKTsgLy8gRVhBTVBMRSBVUkw6IC9hcGkvVXNlckxvZ2lucz8kZmlsdGVyPVVzZXJOYW1lIGVxICdpc2FhYy5oYXJkeUBuZXdzcHJpbmcuY2MnXG5cbiAgICAgICAgaWYgKCFpZGVudGl0eSkge1xuICAgICAgICAgIGNvbnN0IHJlc3BvbnNlID0gbmV3IFJlc3BvbnNlKCcnKTtcbiAgICAgICAgICByZXNwb25zZS5zdGF0dXMgPSA0MDA7XG4gICAgICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KHJlc3BvbnNlKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoaWRlbnRpdHkgPT09IGAnaXNhYWMuaGFyZHlAbmV3c3ByaW5nLmNjJ2ApXG4gICAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtyb2NrTW9ja3MudXNlckxvZ2lucygpXSk7XG5cbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtdKTtcbiAgICAgIH1cbiAgICAgIGNvbnNvbGUubG9nKGBObyByb3V0ZSBtYXRjaGluZyAke3VybH1gKTtcbiAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdChgTm8gcm91dGUgbWF0Y2hpbmcgJHt1cmx9YCk7XG4gICAgfSk7XG4gIH07XG5cbiAgcmV0dXJuIHtcbiAgICAuLi5hcG9sbG9TZXJ2ZXJFbnYsXG4gICAgUmVzcG9uc2U6IGZldGNoLlJlc3BvbnNlLFxuICAgIGZldGNoLFxuICB9O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgY3JlYXRlQXBvbGxvU2VydmVyRW52TW9jaztcbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcy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biAgICAgICAgICAgICAgSWQ6IDEwLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICBdLFxuICAgICAgICAgIHVybFxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvSW50ZXJhY3Rpb25Db21wb25lbnRzJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFxuICAgICAgICAgIFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgSWQ6IDEwMSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgXSxcbiAgICAgICAgICB1cmxcbiAgICAgICAgKTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0NvbnRlbnRDaGFubmVscy9cXFxcZCcpKSB7XG4gICAgICAgIHJldHVybiByZXNvbHZlV2l0aChyb2NrTW9ja3MuY29udGVudENoYW5uZWwoKSk7XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9Hcm91cHMvR2V0RmFtaWxpZXMvXFxcXGQnKSkge1xuICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgocm9ja01vY2tzLmZhbWlsaWVzKCkpO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvQ29udGVudENoYW5uZWxzJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtyb2NrTW9ja3MuY29udGVudENoYW5uZWwoKV0pO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvQ29udGVudENoYW5uZWxJdGVtcy90ZXN0LWNhc2Utbm8tYXR0cmlidXRlcycpKSB7XG4gICAgICAgIGNvbnN0IG1vY2sgPSByb2NrTW9ja3MuY29udGVudEl0ZW0oKTtcbiAgICAgICAgbW9jay5BdHRyaWJ1dGVWYWx1ZXMgPSB7fTtcbiAgICAgICAgbW9jay5BdHRyaWJ1dGVzID0ge307XG4gICAgICAgIHJldHVybiByZX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Jlc3BvbnNlLmhlYWRlcnMuc2V0KCdzZXQtY29va2llJywgJ3NvbWUgY29va2llJyk7XG4gICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXNwb25zZSk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KHsgLi4ucmVzcG9uc2UsIHN0YXR1czogNDAxIH0pO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvUGVvcGxlL0dldEN1cnJlbnRQZXJzb24nKSkge1xuICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgocm9ja01vY2tzLnBlb3BsZSgpKTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL1Blb3BsZS9cXFxcZCcpKSB7XG4gICAgICAgIHJldHVybiByZXNvbHZlV2l0aChyb2NrTW9ja3MucGVvcGxlKCkpO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvUGVvcGxlJykpIHtcbiAgICAgICAgaWYgKHJlcXVlc3QubWV0aG9kID09PSAnUE9TVCcpIHtcbiAgICAgICAgICBjb25zdCB7IEVtYWlsIH0gPSBKU09OLnBhcnNlKHJlcXVlc3QuYm9keSk7XG4gICAgICAgICAgaWYgKCFFbWFpbCkge1xuICAgICAgICAgICAgY29uc3QgcmVzcG9uc2UgPSBuZXcgUmVzcG9uc2UoJycpO1xuICAgICAgICAgICAgcmVzcG9uc2Uuc3RhdHVzID0gNDAwO1xuICAgICAgICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KHJlc3BvbnNlKTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKCczNScpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtyb2NrTW9ja3MucGVvcGxlKCldKTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0ludGVyYWN0aW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ICAgICBzdGF0dXM6IDIwMCxcbiAgICAgICAgICAgIHN0YXR1c1RleHQ6ICdPSycsXG4gICAgICAgICAgICBoZWFkZXJzOiBuZXcgYXBvbGxvU2VydmVyRW52LkhlYWRlcnMoe1xuICAgICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL2pzb24nLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXNwb25zZSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHJlcXVlc3QubWV0aG9kID09PSAnREVMRVRFJykge1xuICAgICAgICAgIGNvbnNvbGUubG9nKCdEZWxldGluZyBmb2xsb3dpbmcnKTtcbiAgICAgICAgICBjb25zdCByZXNwb25zZSA9IG5ldyBSZXNwb25zZShudWxsLCB7XG4gICAgICAgICAgICBzdGF0dXM6IDIwNCxcbiAgICAgICAgICAgIGhlYWRlcnM6IG5ldyBhcG9sbG9TZXJ2ZXJFbnYuSGVhZGVycyh7XG4gICAgICAgICAgICAgICdDb250ZW50LVR5cGUnOiBudWxsLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXNwb25zZSk7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0ludGVyYWN0aW9uU2Vzc2lvbnMnKSkge1xuICAgICAgICBpZiAocmVxdWVzdC5tZXRob2QgPT09ICdHRVQnKSB7XG4gICAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKHJvY2tNb2Nrcy5zZXNzaW9uKCkpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChyZXF1ZXN0Lm1ldGhvZCA9PT0gJ1BPU1QnKSB7XG4gICAgICAgICAgY29uc3QgcmVzcG9uc2UgPSBuZXcgUmVzcG9uc2UoJzEyMycsIHtcbiAgICAgICAgICAgIHN0YXR1czogMjAwLFxuICAgICAgICAgICAgc3RhdHVzVGV4dDogJ09LJyxcbiAgICAgICAgICAgIGhlYWRlcnM6IG5ldyBhcG9sbG9TZXJ2ZXJFbnYuSGVhZGVycyh7XG4gICAgICAgICAgICAgICdDb250ZW50LVR5cGUnOiAnYXBwbGljYXRpb24vanNvbicsXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHJlc3BvbnNlKTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvVXNlckxvZ2lucycpKSB7XG4gICAgICAgIGlmIChyZXF1ZXN0Lm1ldGhvZCA9PT0gJ1BPU1QnKSB7XG4gICAgICAgICAgY29uc3QgeyBVc2VyTmFtZSB9ID0gSlNPTi5wYXJzZShyZXF1ZXN0LmJvZHkpO1xuICAgICAgICAgIGlmICghVXNlck5hbWUpIHtcbiAgICAgICAgICAgIGNvbnN0IHJlc3BvbnNlID0gbmV3IFJlc3BvbnNlKCcnKTtcbiAgICAgICAgICAgIHJlc3BvbnNlLnN0YXR1cyA9IDQwMDtcbiAgICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdChyZXNwb25zZSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiByZXNvbHZlV2l0aCh7IGlkOiAyMSB9KTtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBpZGVudGl0eSA9IHVybCAvLyBpZGVudGl0eSA9IFVzZXJOYW1lXG4gICAgICAgICAgLnNwbGl0KCdlcScpXG4gICAgICAgICAgLnBvcCgpXG4gICAgICAgICAgLnRyaW0oJyAnKTsgLy8gRVhBTVBMRSBVUkw6IC9hcGkvVXNlckxvZ2lucz8kZmlsdGVyPVVzZXJOYW1lIGVxICdpc2FhYy5oYXJkeUBuZXdzcHJpbmcuY2MnXG5cbiAgICAgICAgaWYgKCFpZGVudGl0eSkge1xuICAgICAgICAgIGNvbnN0IHJlc3BvbnNlID0gbmV3IFJlc3BvbnNlKCcnKTtcbiAgICAgICAgICByZXNwb25zZS5zdGF0dXMgPSA0MDA7XG4gICAgICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KHJlc3BvbnNlKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoaWRlbnRpdHkgPT09IGAnaXNhYWMuaGFyZHlAbmV3c3ByaW5nLmNjJ2ApXG4gICAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtyb2NrTW9ja3MudXNlckxvZ2lucygpXSk7XG5cbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtdKTtcbiAgICAgIH1cbiAgICAgIGNvbnNvbGUubG9nKGBObyByb3V0ZSBtYXRjaGluZyAke3VybH1gKTtcbiAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdChgTm8gcm91dGUgbWF0Y2hpbmcgJHt1cmx9YCk7XG4gICAgfSk7XG4gIH07XG5cbiAgcmV0dXJuIHtcbiAgICAuLi5hcG9sbG9TZXJ2ZXJFbnYsXG4gICAgUmVzcG9uc2U6IGZldGNoLlJlc3BvbnNlLFxuICAgIGZldGNoLFxuICB9O1xufTtcblxuZXhwb3J0IGRlZmF1bHQgY3JlYXRlQXBvbGxvU2VydmVyRW52TW9jaztcbiJdfQ==
{
"name": "@apollosproject/apollo-server-env-mock",
"version": "0.8.0-alpha.4",
"version": "0.8.0-alpha.5",
"homepage": "https://github.com/ApollosProject/apollos-prototype#readme",

@@ -10,3 +10,3 @@ "main": "lib/index.js",

"devDependencies": {
"@apollosproject/babel-preset-apollos": "^0.8.0-alpha.4",
"@apollosproject/babel-preset-apollos": "^0.8.0-alpha.5",
"jest-fetch-mock": "^2.0.0"

@@ -18,3 +18,3 @@ },

},
"gitHead": "375e9a2d747fe4c0b5406681e2db676d60c24227"
"gitHead": "e303a0b024a7026ecf7f04dfef9b61cfaad85e87"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc