diff --git a/package-lock.json b/package-lock.json index 3e9e2a5..7e56c01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1720,7 +1720,7 @@ }, "babel-plugin-syntax-object-rest-spread": { "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", + "resolved": "http://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", "dev": true }, @@ -2149,7 +2149,7 @@ }, "buffer": { "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", + "resolved": "http://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "dev": true, "requires": { @@ -3498,7 +3498,7 @@ }, "external-editor": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", + "resolved": "http://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", "requires": { "chardet": "^0.4.0", @@ -6357,7 +6357,7 @@ }, "minimist": { "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" }, "mississippi": { @@ -7305,12 +7305,6 @@ } } }, - "raw-loader": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-0.5.1.tgz", - "integrity": "sha1-DD0L6u2KAclm2Xh793goElKpeao=", - "dev": true - }, "read-pkg": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", @@ -8047,7 +8041,7 @@ }, "minimist": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true } @@ -9228,7 +9222,7 @@ "dependencies": { "minimist": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true } diff --git a/package.json b/package.json index 52ebedc..1e3d88b 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,6 @@ "babel-loader": "^8.0.0", "better-npm-run": "^0.1.1", "jest": "23.5.0", - "raw-loader": "^0.5.1", "webpack": "^4.17.1", "webpack-bundle-analyzer": "^2.13.1", "webpack-cli": "^3.1.0" diff --git a/src/license/license.key.pub b/src/license/license.key.pub deleted file mode 100644 index 4e18af3..0000000 --- a/src/license/license.key.pub +++ /dev/null @@ -1,9 +0,0 @@ ------BEGIN PUBLIC KEY----- -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArTes262OG4eY8RDAEKFo -w25lLGmDybuT8GAuOjnXnaGfWrevUcsBEBVs3SzUkcUHPP9pMq9Cus5w9+b8wfau -Q+pFwdZe4TIgi4A/1X9KjMeuvXB/BxNkLQBxnmwiSoPADL+Y+/6Ginlj57KU4BGc -p4MSISlDPMvz4GR99AdC/R1swlA4QR2O8/Y2nelKhPjXuUbmegR3OzAa6+T1WOLA -VwJuhx91/2eROvIPG8t+LLky1XRQa+sdcEywR1nKa2L5to32UIRSg+Houq3ObF9c -WaYPv3VXZinO2jXtnUafKDWqFmqzCjLiY8cshqpKlEvrVQdGF6/R/BwXfAFcx6lx -qwIDAQAB ------END PUBLIC KEY----- diff --git a/src/license/verify.js b/src/license/verify.js index 24858a8..67a7864 100644 --- a/src/license/verify.js +++ b/src/license/verify.js @@ -1,7 +1,15 @@ const crypto = require('crypto'); const jwt = require('jsonwebtoken'); -const LICENSE_PUBLIC_KEY = require('./license.key.pub'); +const LICENSE_PUBLIC_KEY = `-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArTes262OG4eY8RDAEKFo +w25lLGmDybuT8GAuOjnXnaGfWrevUcsBEBVs3SzUkcUHPP9pMq9Cus5w9+b8wfau +Q+pFwdZe4TIgi4A/1X9KjMeuvXB/BxNkLQBxnmwiSoPADL+Y+/6Ginlj57KU4BGc +p4MSISlDPMvz4GR99AdC/R1swlA4QR2O8/Y2nelKhPjXuUbmegR3OzAa6+T1WOLA +VwJuhx91/2eROvIPG8t+LLky1XRQa+sdcEywR1nKa2L5to32UIRSg+Houq3ObF9c +WaYPv3VXZinO2jXtnUafKDWqFmqzCjLiY8cshqpKlEvrVQdGF6/R/BwXfAFcx6lx +qwIDAQAB +-----END PUBLIC KEY-----`; const sha256 = (string) => crypto.createHash('sha256').update(string).digest('hex'); diff --git a/webpack.config.js b/webpack.config.js index 923cd24..5a8f314 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -33,11 +33,6 @@ const getWebpackConfig = (override) => override({ ] } } - }, - { - test: /\.pub$/, - exclude: /node_modules/, - use: 'raw-loader' } ] },