{"_id":"@amply-media/amply-push-module","_rev":"2-eca8871dc222bf0f8fe3f7f6512cacb7","name":"@amply-media/amply-push-module","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@amply-media/amply-push-module","version":"0.0.1","description":"Amply Push Module","scripts":{"build":"webpack -d --watch","prod":"webpack -p"},"dependencies":{},"devDependencies":{"ts-loader":"^3.2.0","typescript":"^2.6.2","webpack":"^3.10.0"},"main":"./bundles/amply-push.bundle.js","gitHead":"e31e8a5fccefc3a36022c2dd5116b27f5cb51631","_id":"@amply-media/amply-push-module@0.0.1","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"cboyle-amply","email":"cboyle@amplymedia.com"},"dist":{"integrity":"sha512-EeIU3R7l7OKTzKIDoPrB30EbaQv29zdQHEWTXUK4u0aLy80qR4oaImuNXd72w2/VC0lJA3HAyawNNCeKeCpjKQ==","shasum":"004440f85e5a969c451fa736d1284499bf978916","tarball":"https://registry.npmjs.org/@amply-media/amply-push-module/-/amply-push-module-0.0.1.tgz","fileCount":15,"unpackedSize":116245,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbIUCqCRA9TVsSAnZWagAAQjYP/2aBM1Hr6NO00SCrtuts\nLm6wRThU7LfJhkas9XjjfClEJeu1AQjigrrBQj8u3OnjCqruBBPxzI4rsp04\nITUxMDGyGsgLS4+prZSyvaZ5mBdvcTpJmsj6XXciPB6n9J8Wc6q1Oj9YUEjL\nn4mdL4HhMSdo3pHzIqTy1MxS958Spk9EQvMKxYfrRy+X0dqq8BoEof1VH5tg\nXay61CZntTaU8JPfqxRpZ09d67yMkEHIUI0kj3HbzM2ZAbE/phQyO29WMtUY\nYBzhQm+H1yueCoxXPLHI+HctRPo5f5LLGBdmrfNgScf+DkvsveLlgqipOyUL\nS9ua3Aij1BZ9sxPNfjOMK45weGnGYV1ZNIovrzUGJZbWspg0g+bS3mpFD06o\nO88N3dBN7BEn0JI5QRbb26S69/z2lXjAVymM/k3pTaMXf8HEmQ7fzP3TZT5t\nOm7EJIVNLGW6OW2x/hMhZuS1VeOyPp4Bek+3tb7oxei/VVcAWPOtUJhDFqW0\n3OZSxMeOm19oW+G7uvYALuoj0UUaPSFQILENN5vIrJqa7AUXvrH6NWnNWc/7\n39+CnQBYTnDy/DJlBpX4illcmJ7vX8stgKAOdfOuTYmZnpTF0jcphSaHwAhq\nnuFfUr7ULslP2DK5dtLf/9FakEliuUnbhl81SIH8PXRy13UGueKL7dRrb4Mf\nD11U\r\n=U/ic\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4hrAk+G4rBt53UszFBrXt67HqXsHEAKV5GVJtaGbTIAIgCBXumhHSOjHqODyxLD3FP/okibOqKOn2HV8zICxkHRg="}]},"maintainers":[{"name":"cboyle-amply","email":"cboyle@amplymedia.com"},{"name":"mculey","email":"mculey@amplymedai.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amply-push-module_0.0.1_1528905897314_0.6503374114121203"},"_hasShrinkwrap":false},"0.1.0":{"name":"@amply-media/amply-push-module","version":"0.1.0","description":"Amply Push Module","scripts":{"build":"webpack -d --watch","prod":"webpack -p"},"dependencies":{},"devDependencies":{"ts-loader":"^3.2.0","typescript":"^2.6.2","webpack":"^3.10.0"},"main":"./bundles/amply-push.bundle.js","files":["bundles"],"gitHead":"aa20c0a8b5dcaf877a8012d4c0278faa1aee8ddd","_id":"@amply-media/amply-push-module@0.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"cboyle-amply","email":"cboyle@amplymedia.com"},"dist":{"integrity":"sha512-q/zU3hfdF28VOaqIu4BUL3HQ6y9YPI5XrPG0x47Pqlmqt/VqzOz27MWQV54ibJC1UoM5wosq3Tvh/Sy8AwEi5A==","shasum":"51736c6c4587e6df4f18c81b3cfca873527db893","tarball":"https://registry.npmjs.org/@amply-media/amply-push-module/-/amply-push-module-0.1.0.tgz","fileCount":3,"unpackedSize":95725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbIUIQCRA9TVsSAnZWagAAVJAP/3mi9xjbHDFXxX2ZxGVl\nD3JmHrCwGA7HZgNkVHYzLRQZJPsKt9+Sib+OBSdUX4OdOjz/ZFFYricRjYiU\nE26dmetxPpvFiUSLb5MMSApSmXDMTff094/IbkhHVvrX8aRYAyaMiw7bY0yn\n8hvqUqMIpXIihs6NHyRQv1DbecnEd6UK4QGMcqWEveGwAyd1y6nWDv8hhG5D\nyQ4hnFaJwknJGw5/iQUV0uoy00L6iO20K10PKRXy/CzAW8rVWoAeS4jsA08K\n/FYh0Vd0sGu2/xJDgFhvamHgRRc7wXnPsXbAEQKu21/dCWMpiirxF34GyD3/\nmAehQDsiqL/BvrRwNbVLDSo+vFNFysZMSGVaUKeg6tPLg2ROrLULN0h3jnmk\nCNzGeyeDlCg6a2O8nokaQ4vMwdhte9LJ3i687JZHjJ2UuF6xppflo25fUgQy\nCMBtQRYZqzVY8Oqia5Z7J9iYGSPWSU4n3Fj2kILl+OKU+UZPqut0TCKd2TXp\nNqt+eGOIul64ipuxWBJxO5C91S6za1UKAgCuF8Wf0LSSH1nqTOwU+PRXV5Zz\nwIe8VqefUBov+LUF3dz/619DZcW20+5WUj4/V5XeL8DHEOl4y1Ljvd/q6anv\nlH6V3SnHCCE/5/aluEtCeMa9DQ5a6UQxDLc+LgAXuvr5rRqSGU0/XlWceQQ4\nEbGv\r\n=FR1g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGt/UTA1gz0YoNZdaeJJx1YAmsusn6TXLThpEmOD0knAiBC5exp56x5vdiAupsDGzDfhNe0jJh5/btY7AVAyBDrDA=="}]},"maintainers":[{"name":"cboyle-amply","email":"cboyle@amplymedia.com"},{"name":"mculey","email":"mculey@amplymedai.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amply-push-module_0.1.0_1528906255892_0.5390305568080875"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-13T16:04:57.050Z","0.0.1":"2018-06-13T16:04:57.367Z","modified":"2022-04-04T13:52:27.200Z","0.1.0":"2018-06-13T16:10:55.974Z"},"maintainers":[{"name":"cboyle-amply","email":"cboyle@amplymedia.com"},{"name":"mculey","email":"mculey@amplymedai.com"}],"description":"Amply Push Module","readme":"# Project Title\n\nAmply Push Library\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Usage Requirements\n\nThis library was designed to work within the existing AWS infrastructure we have established.  As such, it is reliant on a few of our established standards.\n\nFirst off, the project needs to be using Cloudfront or Nginx or some other service able to proxy requests.  That service needs to be equipped to handle the following endpoints:\n\n* `/pn/*` - to handle the save, push, etc. requests sent to Glassfish\n* `/ia*` - handles images from Glassfish\n* `/ic*` - handles images from Glassfish\n* `manifest.json` - domain messaging credentials served by Glassfish\n* `service_worker.js` - the actual service worker handling the push service\n\n### Installing the Library\n\nCurrently the library can be used in two ways:\n\n1. Installing the git repository itself as an npm module\n2. Linking to the bundled JS file in an S3 bucket\n\n### Using the Library\n\nThe push library exposes four methods to the window which can be used by the frontend as necessary:\n\n1. `amply_push.promptAllow()` - triggers the system allow prompt and registers the allow\n2. `amply_push.unsubscribe()` - unsubscribes the user and removes the relevant entires in local storage\n3. `amply_push.sendPush()` - sends a sample push to the user\n4. `amply_push.getSubscriptionInfo()` - returns a string containing the user's relevant subscription ID and other data\n\n## Deployment\n\nIn progress\n","readmeFilename":"README.md"}