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
3
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 1.2.0-alpha.2 to 1.2.0-alpha.11

10

lib/index.js

@@ -46,2 +46,10 @@ "use strict";

if (request.url === 'https://api.scripture.api.bible/v1/bibles/9879dbb7cfe39e4d-01') {
return resolveWith({
data: {
abbreviationLocal: 'WEB'
}
}, request.url);
}
return resolveWith(apolloDatasourceMocks.Scripture()[0], request.url);

@@ -291,2 +299,2 @@ }

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjcmVhdGVBcG9sbG9TZXJ2ZXJFbnZNb2NrIiwiYXBvbGxvU2VydmVyRW52IiwiUmVzcG9uc2UiLCJyZXNvbHZlV2l0aCIsImRhdGEiLCJ1cmwiLCJQcm9taXNlIiwicmVzb2x2ZSIsIkpTT04iLCJzdHJpbmdpZnkiLCJzdGF0dXMiLCJzdGF0dXNUZXh0IiwiaGVhZGVycyIsIkhlYWRlcnMiLCJmZXRjaCIsIm1vY2tMaXZlRGF0YVNvdXJjZUFwaXMiLCJtb2NrSW1wbGVtZW50YXRpb24iLCJyZXF1ZXN0IiwibWF0Y2giLCJhcG9sbG9EYXRhc291cmNlTW9ja3MiLCJsaXZlU3RyZWFtTGl2ZSIsImluY2x1ZGVzIiwiU2NyaXB0dXJlIiwicmVqZWN0IiwibW9ja1JvY2tEYXRhU291cmNlQVBJIiwiZGVjb2RlVVJJIiwiSWQiLCJyb2NrTW9ja3MiLCJjb250ZW50Q2hhbm5lbCIsImZhbWlsaWVzIiwibW9jayIsImNvbnRlbnRJdGVtIiwiQXR0cmlidXRl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NyaXB0dXJlLmFwaS5iaWJsZS92MScpKSB7XG4gICAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKGFwb2xsb0RhdGFzb3VyY2VNb2Nrcy5TY3JpcHR1cmUoKVswXSk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KCk7XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9FbnRpdHlUeXBlcycpKSB7XG4gICAgICAgIHJldHVybiByZXNvbHZlV2l0aChcbiAgICAgICAgICBbXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIElkOiAyMDEsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIF0sXG4gICAgICAgICAgdXJsXG4gICAgICAgICk7XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9JbnRlcmFjdGlvbkNoYW5uZWxzJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFxuICAgICAgICAgIFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgSWQ6IDEwLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICBdLFxuICAgICAgICAgIHVybFxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvSW50ZXJhY3Rpb25Db21wb25lbnRzJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFxuICAgICAgICAgIFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgSWQ6IDEwMSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgXSxcbiAgICAgICAgICB1cmxcbiAgICAgICAgKTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0NvbnRlbnRDaGFubmVscy9cXFxcZCcpKSB7XG4gICAgICAgIHJldHVybiByZXNvbHZlV2l0aChyb2NrTW9ja3MuY29udGVudENoYW5uZWwoKSk7XG4gICAgICB9XG5cb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wubWF0Y2goJ2FwaS9Db250ZW50Q2hhbm5lbEl0ZW1zJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtyb2NrTW9ja3MuY29udGVudEl0ZW0oKV0pO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvQ29udGVudENoYW5uZWxJdGVtQXNzb2NpYXRpb25zJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtyb2NrTW9ja3MuY29udGVudENoYW5uZWxJdGVtQXNzb2NpYXRpb24oKV0pO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvRGF0YVZpZXdzL0dldFBlcnNpc3RlZERhdGFWaWV3c0ZvckVudGl0eScpKSB7XG4gICAgICAgIHJldHVybiByZXNvbHZlV2l0aChbcm9ja01vY2tzLmRhdGFWaWV3KCldKTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0F1dGgvTG9naW4nKSkge1xuICAgICAgICBjb25zdCBib2R5ID0gSlNPTi5wYXJzZShyZXF1ZXN0LmJvZHkpO1xuICAgICAgICBjb25zdCByZXNwb25zZSA9IG5ldyBSZXNwb25zZSgnJyk7XG4gICAgICAgIGlmIChib2R5LlBhc3N3b3JkID09PSAnZ29vZCcpIHtcbiAgICAgICAgICByZXNwb25zZS5oZWFkZXJzLnNldCgnc2V0LWNvb2tpZScsICdzb21lIGNvb2tpZScpO1xuICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzcG9uc2UpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdCh7IC4uLnJlc3BvbnNlLCBzdGF0dXM6IDQwMSB9KTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0xhdmEvUmVuZGVyVGVtcGxhdGUnKSkge1xuICAgICAgICBjb25zdCBib2R5ID0gSlNPTi5wYXJzZShyZXF1ZXN0Lm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oe1xuICAgICAgICAgICAgICAnQ29udGVudC1UeXBlJzogJ2FwcGxpY2F0aW9uL2pzb24nLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXNwb25zZSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHJlcXVlc3QubWV0aG9kID09PSAnREVMRVRFJykge1xuICAgICAgICAgIGNvbnN0IHJlc3BvbnNlID0gbmV3IFJlc3BvbnNlKG51bGwsIHtcbiAgICAgICAgICAgIHN0YXR1czogMjA0LFxuICAgICAgICAgICAgaGVhZGVyczogbmV3IGFwb2xsb1NlcnZlckVudi5IZWFkZXJzKHtcbiAgICAgICAgICAgICAgJ0NvbnRlbnQtVHlwZSc6IG51bGwsXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHJlc3BvbnNlKTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvSW50ZXJhY3Rpb25TZXNzaW9ucycpKSB7XG4gICAgICAgIGlmIChyZXF1ZXN0Lm1ldGhvZCA9PT0gJ0dFVCcpIHtcbiAgICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgocm9ja01vY2tzLnNlc3Npb24oKSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHJlcXVlc3QubWV0aG9kID09PSAnUE9TVCcpIHtcbiAgICAgICAgICBjb25zdCByZXNwb25zZSA9IG5ldyBSZXNwb25zZSgnMTIzJywge1xuICAgICAgICAgICAgc3RhdHVzOiAyMDAsXG4gICAgICAgICAgICBzdGF0dXNUZXh0OiAnT0snLFxuICAgICAgICAgICAgaGVhZGVyczogbmV3IGFwb2xsb1NlcnZlckVudi5IZWFkZXJzKHtcbiAgICAgICAgICAgICAgJ0NvbnRlbnQtVHlwZSc6ICdhcHBsaWNhdGlvbi9qc29uJyxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzcG9uc2UpO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9Vc2VyTG9naW5zJykpIHtcbiAgICAgICAgaWYgKHJlcXVlc3QubWV0aG9kID09PSAnUE9TVCcpIHtcbiAgICAgICAgICBjb25zdCB7IFVzZXJOYW1lIH0gPSBKU09OLnBhcnNlKHJlcXVlc3QuYm9keSk7XG4gICAgICAgICAgaWYgKCFVc2VyTmFtZSkge1xuICAgICAgICAgICAgY29uc3QgcmVzcG9uc2UgPSBuZXcgUmVzcG9uc2UoJycpO1xuICAgICAgICAgICAgcmVzcG9uc2Uuc3RhdHVzID0gNDAwO1xuICAgICAgICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KHJlc3BvbnNlKTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKHsgaWQ6IDIxIH0pO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGlkZW50aXR5ID0gdXJsIC8vIGlkZW50aXR5ID0gVXNlck5hbWVcbiAgICAgICAgICAuc3BsaXQoJ2VxJylcbiAgICAgICAgICAucG9wKClcbiAgICAgICAgICAudHJpbSgnICcpOyAvLyBFWEFNUExFIFVSTDogL2FwaS9Vc2VyTG9naW5zPyRmaWx0ZXI9VXNlck5hbWUgZXEgJ2lzYWFjLmhhcmR5QG5ld3NwcmluZy5jYydcblxuICAgICAgICBpZiAoIWlkZW50aXR5KSB7XG4gICAgICAgICAgY29uc3QgcmVzcG9uc2UgPSBuZXcgUmVzcG9uc2UoJycpO1xuICAgICAgICAgIHJlc3BvbnNlLnN0YXR1cyA9IDQwMDtcbiAgICAgICAgICByZXR1cm4gUHJvbWlzZS5yZWplY3QocmVzcG9uc2UpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChpZGVudGl0eSA9PT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0dXJuIHJlc29sdmVXaXRoKGFwb2xsb0RhdGFzb3VyY2VNb2Nrcy5TY3JpcHR1cmUoKVswXSk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KCk7XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9FbnRpdHlUeXBlcycpKSB7XG4gICAgICAgIHJldHVybiByZXNvbHZlV2l0aChcbiAgICAgICAgICBbXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIElkOiAyMDEsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIF0sXG4gICAgICAgICAgdXJsXG4gICAgICAgICk7XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9JbnRlcmFjdGlvbkNoYW5uZWxzJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFxuICAgICAgICAgIFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgSWQ6IDEwLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICBdLFxuICAgICAgICAgIHVybFxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvSW50ZXJhY3Rpb25Db21wb25lbnRzJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFxuICAgICAgICAgIFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgSWQ6IDEwMSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgXSxcbiAgICAgICAgICB1cmxcbiAgICAgICAgKTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0NvbnRlbnRDaGFubmVscy9cXFxcZCcpKSB7XG4gICAgICAgIHJldHVybiByZXNvbHZlV2l0aChyb2NrTW9ja3MuY29udGVudENoYW5uZWwoKSk7XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9Hcm91cHMvR2V0RmF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cbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtyb2NrTW9ja3MuY29udGVudEl0ZW0oKV0pO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvQ29udGVudENoYW5uZWxJdGVtQXNzb2NpYXRpb25zJykpIHtcbiAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKFtyb2NrTW9ja3MuY29udGVudENoYW5uZWxJdGVtQXNzb2NpYXRpb24oKV0pO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvRGF0YVZpZXdzL0dldFBlcnNpc3RlZERhdGFWaWV3c0ZvckVudGl0eScpKSB7XG4gICAgICAgIHJldHVybiByZXNvbHZlV2l0aChbcm9ja01vY2tzLmRhdGFWaWV3KCldKTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0F1dGgvTG9naW4nKSkge1xuICAgICAgICBjb25zdCBib2R5ID0gSlNPTi5wYXJzZShyZXF1ZXN0LmJvZHkpO1xuICAgICAgICBjb25zdCByZXNwb25zZSA9IG5ldyBSZXNwb25zZSgnJyk7XG4gICAgICAgIGlmIChib2R5LlBhc3N3b3JkID09PSAnZ29vZCcpIHtcbiAgICAgICAgICByZXNwb25zZS5oZWFkZXJzLnNldCgnc2V0LWNvb2tpZScsICdzb21lIGNvb2tpZScpO1xuICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzcG9uc2UpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdCh7IC4uLnJlc3BvbnNlLCBzdGF0dXM6IDQwMSB9KTtcbiAgICAgIH1cblxuICAgICAgaWYgKHVybC5tYXRjaCgnYXBpL0xhdmEvUmVuZGVyVGVtcGxhdGUnKSkge1xuICAgICAgICBjb25zdCBib2R5ID0gSlNPTi5wYXJzZShyZXF1ZXN0LmJvZHkpO1xuICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgocm9ja01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F0aW9uL2pzb24nLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXNwb25zZSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHJlcXVlc3QubWV0aG9kID09PSAnREVMRVRFJykge1xuICAgICAgICAgIGNvbnN0IHJlc3BvbnNlID0gbmV3IFJlc3BvbnNlKG51bGwsIHtcbiAgICAgICAgICAgIHN0YXR1czogMjA0LFxuICAgICAgICAgICAgaGVhZGVyczogbmV3IGFwb2xsb1NlcnZlckVudi5IZWFkZXJzKHtcbiAgICAgICAgICAgICAgJ0NvbnRlbnQtVHlwZSc6IG51bGwsXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHJlc3BvbnNlKTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvSW50ZXJhY3Rpb25TZXNzaW9ucycpKSB7XG4gICAgICAgIGlmIChyZXF1ZXN0Lm1ldGhvZCA9PT0gJ0dFVCcpIHtcbiAgICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgocm9ja01vY2tzLnNlc3Npb24oKSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHJlcXVlc3QubWV0aG9kID09PSAnUE9TVCcpIHtcbiAgICAgICAgICBjb25zdCByZXNwb25zZSA9IG5ldyBSZXNwb25zZSgnMTIzJywge1xuICAgICAgICAgICAgc3RhdHVzOiAyMDAsXG4gICAgICAgICAgICBzdGF0dXNUZXh0OiAnT0snLFxuICAgICAgICAgICAgaGVhZGVyczogbmV3IGFwb2xsb1NlcnZlckVudi5IZWFkZXJzKHtcbiAgICAgICAgICAgICAgJ0NvbnRlbnQtVHlwZSc6ICdhcHBsaWNhdGlvbi9qc29uJyxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzcG9uc2UpO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmICh1cmwubWF0Y2goJ2FwaS9Vc2VyTG9naW5zJykpIHtcbiAgICAgICAgaWYgKHJlcXVlc3QubWV0aG9kID09PSAnUE9TVCcpIHtcbiAgICAgICAgICBjb25zdCB7IFVzZXJOYW1lIH0gPSBKU09OLnBhcnNlKHJlcXVlc3QuYm9keSk7XG4gICAgICAgICAgaWYgKCFVc2VyTmFtZSkge1xuICAgICAgICAgICAgY29uc3QgcmVzcG9uc2UgPSBuZXcgUmVzcG9uc2UoJycpO1xuICAgICAgICAgICAgcmVzcG9uc2Uuc3RhdHVzID0gNDAwO1xuICAgICAgICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KHJlc3BvbnNlKTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcmV0dXJuIHJlc29sdmVXaXRoKHsgaWQ6IDIxIH0pO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGlkZW50aXR5ID0gdXJsIC8vIGlkZW50aXR5ID0gVXNlck5hbWVcbiAgICAgICAgICAuc3BsaXQoJ2VxJylcbiAgICAgICAgICAucG9wKClcbiAgICAgICAgICAudHJpbSgnICcpOyAvLyBFWEFNUExFIFVSTDogL2FwaS9Vc2VyTG9naW5zPyRmaWx0ZXI9VXNlck5hbWUgZXEgJ2lzYWFjLmhhcmR5QG5ld3NwcmluZy5jYydcblxuICAgICAgICBpZiAoIWlkZW50aXR5KSB7XG4gICAgICAgICAgY29uc3QgcmVzcG9uc2UgPSBuZXcgUmVzcG9uc2UoJycpO1xuICAgICAgICAgIHJlc3BvbnNlLnN0YXR1cyA9IDQwMDtcbiAgICAgICAgICByZXR1cm4gUHJvbWlzZS5yZWplY3QocmVzcG9uc2UpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChpZGVudGl0eSA9PT0gYCdpc2FhYy5oYXJkeUBuZXdzcHJpbmcuY2MnYClcbiAgICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgoW3JvY2tNb2Nrcy51c2VyTG9naW5zKCldKTtcblxuICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgoW10pO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvQ2FtcHVzZXMvXFxcXGQnKSkge1xuICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgocm9ja01vY2tzLmNhbXB1c2VzKClbMF0pO1xuICAgICAgfVxuXG4gICAgICBpZiAodXJsLm1hdGNoKCdhcGkvQ2FtcHVzZXMnKSkge1xuICAgICAgICByZXR1cm4gcmVzb2x2ZVdpdGgocm9ja01vY2tzLmNhbXB1c2VzKCkpO1xuICAgICAgfVxuXG4gICAgICBjb25zb2xlLmxvZyhgTm8gcm91dGUgbWF0Y2hpbmcgJHt1cmx9YCk7XG4gICAgICByZXR1cm4gUHJvbWlzZS5yZWplY3QoYE5vIHJvdXRlIG1hdGNoaW5nICR7dXJsfWApO1xuICAgIH0pO1xuICB9O1xuXG4gIHJldHVybiB7XG4gICAgLi4uYXBvbGxvU2VydmVyRW52LFxuICAgIFJlc3BvbnNlOiBmZXRjaC5SZXNwb25zZSxcbiAgICBmZXRjaCxcbiAgfTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IGNyZWF0ZUFwb2xsb1NlcnZlckVudk1vY2s7XG4iXX0=

6

package.json
{
"name": "@apollosproject/apollo-server-env-mock",
"version": "1.2.0-alpha.2+977b2fb",
"version": "1.2.0-alpha.11+bfd2af7",
"homepage": "https://github.com/ApollosProject/apollos-prototype#readme",

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

"devDependencies": {
"@apollosproject/babel-preset-apollos": "^1.2.0-beta.2",
"@apollosproject/babel-preset-apollos": "^1.2.0-beta.7",
"jest-fetch-mock": "^2.0.0"

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

},
"gitHead": "977b2fbf92d06b416d44e7cfc18c1115dcbee2b3"
"gitHead": "bfd2af79c72ca9d8e78b6252ce1521be99b66f11"
}
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