emailjs / emailjs-tcp-socket Goto Github PK
View Code? Open in Web Editor NEWShim for W3C TCPSocket API
License: MIT License
Shim for W3C TCPSocket API
License: MIT License
Getting this error:
Error in response to runtime.getPlatformInfo: TypeError: Cannot read property 'create' of undefined
at TCPSocket._createLegacySocket (chrome-extension://jjhfjlndikmcdkjlkkomnfelhlbkefmc/node_modules/tcp-socket/src/tcp-socket.js:455:26)
at Object.callback (chrome-extension://jjhfjlndikmcdkjlkkomnfelhlbkefmc/node_modules/tcp-socket/src/tcp-socket.js:442:26)
at new TCPSocket (chrome-extension://jjhfjlndikmcdkjlkkomnfelhlbkefmc/node_modules/tcp-socket/src/tcp-socket.js:418:28)
at Function.TCPSocket.open (chrome-extension://jjhfjlndikmcdkjlkkomnfelhlbkefmc/node_modules/tcp-socket/src/tcp-socket.js:898:16)
at chrome-extension://jjhfjlndikmcdkjlkkomnfelhlbkefmc/bin/main.js:5:31
at chrome-extension://jjhfjlndikmcdkjlkkomnfelhlbkefmc/bin/main.js:13:4
Seems this check in chromeShim() forces obsolete API which is unavailable in recent versions:
if (platformInfo.os.indexOf("cordova") !== -1) {
// chrome.sockets.tcp.secure is not functional on cordova
// https://github.com/MobileChromeApps/mobile-chrome-apps/issues/269
self._useLegacySocket = false;
self._useForgeTls = true;
} else {
self._useLegacySocket = true;
self._useForgeTls = false;
}
platformInfo.os.indexOf("cordova") for "mac" gives -1 which sets self._useLegacySocket = true in else block.
Chrome Version 47.0.2526.106 (64-bit)
Please fix
Branch | Build failing π¨ |
---|---|
Dependency | sinon |
Current Version | 4.1.5 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 10 commits.
68c37ed
Update docs/changelog.md and set new release id in docs/_config.yml
cd8ae51
Add release documentation for v4.1.6
29e80be
4.1.6
a5c59a5
Update History.md and AUTHORS for new release
0ae60b6
Merge pull request #1653 from mroderick/upgrade-dependencies
dcd4191
Upgrade browserify to latest
a316f02
Upgrade markdownlint-cli to latest
78ebdb3
Upgrade lint-staged to latest
fcf967b
Upgrade dependency supports-color
7c3cb4f
Enable StaleBot with default configuration (#1649)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
0.1.4
to 0.1.5
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
wdio-chromedriver-service is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
4.13.2
to 4.14.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
webdriverio is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 16 commits.
b36ec65
4.14.0
16fa02e
update changelog
8494d5a
Update the babel hook
4529825
lint.
4bf29e3
Update utilities.js
292cb7f
Update utilities.js
e7508d1
IE Returns 405
message
7740f75
add support for find by attribute and content
2b11dcc
fixing doc typo
313392b
updating variable names and function documentation
25558d5
updating function based on PR review
1e93fa6
fixing linting issues
bf6e295
updating based on PR comments
c806f1f
added exclude spec functionality to cli arguments
19cc9b2
Update the config's example
There are 16 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
0.10.5
to 0.10.6
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
chrome-launcher is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 7 commits.
5cb26ea
v0.10.6
55397e0
deps: update yarn.lock from #142
179a3f3
silence grep (#138)
d2f6037
fix: move unneeded ts types to devDeps (#142)
984d61c
docs(flags): remove a few flags that are gone.
6316362
docs: fix link to chrome-launcher's flags (#128)
f1f6d16
Update chrome-flags-for-tools.md
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
I am unable to build the forge.min.js. The commands succeed by do not yield anything.
Can you please provide a download link for forge.min.js OR
can I use the forge.js found under node_modules/js folder?
Thanks in advance.
Currently socket.io connection is established to the same host as script origin. It would be nice, if socket.io host can be configurable.
2.42.0
to 2.42.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
chromedriver is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
4.33.0
to 4.34.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 30 commits.
34c8667
4.34.0
0652114
Merge pull request #9268 from webpack/bugfix/let-scopes
e6f9db8
Merge pull request #9261 from webpack/bugfix/ff-errors
e04b1a5
handle block scopes correctly
55f18f9
Merge pull request #9260 from webpack/fix-9044
a1d4567
fix error message and stack in Firefox
8d5ad83
simplify code
df5e118
fix(mjs): remove unused namespace build errors
acf2c2d
Merge pull request #8615 from felixfbecker/patch-1
44fff70
Merge pull request #9256 from webpack/dependabot/npm_and_yarn/@types/node-10.14.9
74178d4
Update snapshot
7fb14ec
Add name property to error thrown on chunk load failure
85b0917
chore(deps-dev): bump @types/node from 10.14.8 to 10.14.9
30882ca
Link to JS Foundation Code Of Conduct
ff85fae
Merge pull request #9241 from webpack/dependabot/npm_and_yarn/prettier-1.18.2
There are 30 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi ,
I am trying to use this library on browser.
On node the imap client is working fine.
But no luck on browser.
I am getting Error: Runtime does not offer TCPSockets!
on chrome for tcp-socket package.
I have used the first usage code of tcp-socket on your npm page.
Help me out .
Link
`https://gist.github.com/Akash-dvd/84beb892938e1f2c8eee
Hello,
trying to require wo-smtpclient on nwjs 0.13 beta2 I get this error:
Uncaught /build/node_modules/wo-smtpclient/node_modules/tcp-socket/src/tcp-socket-tls.js:30
message: "forge is not defined"
I found a workaround setting process.versions.electron = 'fake-electron-app'
before to call require('wo-smtpclient')
I'm thinking if this is related to the beta stage of nwjs (which one is under development).
Branch | Build failing π¨ |
---|---|
Dependency | wdio-chromedriver-service |
Current Version | 0.1.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
wdio-chromedriver-service is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 3 commits.
b5a6dac
Merge pull request #8 from atti187/peerDependency
bb76e8a
Fixed deprecated npm scripts
ef7fddd
Added Chromedriver as a peer dependency [fixes #7]
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | webpack |
Current Version | 4.17.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 9 commits.
dfe6379
4.17.2
80bc330
Merge pull request #7961 from aimergenge/patch-1
3dedc72
Merge pull request #7969 from webpack/deps/upgrade
cd9525a
Upgrade some dependencies
7996883
solving outputing unnecessary spaces
76c3193
Merge pull request #7952 from webpack/tooling/prettier
1b886ee
improve prettier and lint config and performance
6e01fd5
Merge pull request #7942 from webpack/test/performance
2740d4a
improve jest startup performance
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
I think this would require a new shim to support https://github.com/blocshop/sockets-for-cordova probably also using Forge to provide TLS like the existing one does
5.10.1
to 5.10.4
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
webdriverio is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 9 commits.
2d58d82
v5.10.4
2a27222
Update utils.js (#4077)
33d8010
update changelog
5c62769
v5.10.3
cbf0d4f
Fix Chromedriver install via config wizard (#4075)
453d40d
update changelog
c58a2c8
v5.10.2
5503af2
Move cbt tunnels to dependency block (#4071)
25dda29
update changelog
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
That's will be a lot of UI lag
Electron, which is similar to NW.js, has node.js require()
but not define()
, so currently is not supported.
If change
else if (typeof define === 'function' && define.amd && typeof nodeRequire !== 'undefined') {
// amd under node-webkit
define([], factory.bind(null, navigator, null, nodeRequire('net'), nodeRequire('tls')));
}
to
else if (typeof nodeRequire !== 'undefined') {
factory(navigator, null, nodeRequire('net'), nodeRequire('tls'));
}
it works in Electron.
It seems define()
is not necessary even in NW.js?
3.3.3
to 3.3.4
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
webpack-cli is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
Webpack CLI version 3.3.4 is the last version we are going to support with the old CLI interface before version 4 is released. It comes with a bugfix for errors in a webpack configuration and fixes to infrastructure not related to the core packages. A full changelog is available here
Love, webpack team
The new version differs by 30 commits.
08edf57
Merge pull request #954 from webpack/v.3.3.4
186166f
chore: v.3.3.4
8acf08f
Merge pull request #952 from pranshuchittora/docs/readme
8b00884
chore: remove unused pkgs
478340d
chore: fix prompt
0acd33e
Merge pull request #949 from rishabh3112/fix/not-found
23eddcb
chore: improved err msg
d025bf5
Merge branch 'master' of github.com:webpack/webpack-cli into docs/readme
3857b0d
Merge pull request #947 from anikethsaha/docs/init
8ac2b74
docs(readme): removes the docs url for removed packages
cd51fba
Merge branch 'master' of github.com:webpack/webpack-cli into docs/readme
7f4d100
Merge pull request #951 from anikethsaha/fix/command-mismatching
c2a11da
docs(readme): fixes toc styling
bf0efa5
chore: removed the commented statement
a2062f2
fix: module not found error
There are 30 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
βοΈ Greenkeeperβs updated Terms of Service will come into effect on April 6th, 2018.
Branch | Build failing π¨ |
---|---|
Dependency | sinon |
Current Version | 4.4.6 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 7 commits.
e060fe9
Update docs/changelog.md and set new release id in docs/_config.yml
e9fce06
Add release documentation for v4.4.7
f047838
4.4.7
cc91fe6
Update History.md and AUTHORS for new release
9fb8577
Emojify the support message :heart:
a87ef85
Use existing mini-lib for coloring
1f33fe5
Reduce noisy NPM output from postinstall script
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi, for first a big thanks to having developed such amazing class system to manage an email client.
I've built a complete email client with your emal.js class (no encryption).
Its' sencha touch + (browserbox, smtpclient, etc) + cordova app for iOS and Android.
It's working well, except that on the Android version it's failing (smtpclient.js client.send(data)) sending more then 16384 bytes, maybe related with this (not fixed): MobileChromeApps/cordova-plugin-chrome-apps-sockets-tcp@990b0ca
I got i timed out error from smtpclient
Any idea?
CA certificates are not passed to the net.tls.connect()
function and the socket can not be upgraded if the server uses a certificate that is not in the mozilla CA Certificate Store.
Use-case: IMAP connection using emailjs-imap-client to internal servers.
Connecting without disabling NODE_TLS_REJECT_UNAUTHORIZED
causes an error to be thrown, however the error isn't caught by the promise. Would be helpful if it were return in the error handler...
For reference, see: emailjs/emailjs-imap-client#171
Branch | Build failing π¨ |
---|---|
Dependency | nodemon |
Current Version | 1.12.5 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
nodemon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 11 commits.
f52615c
fix: only use fork if node>4
2d4ce03
docs: update faq on issue #1124
62a361c
fix: use fork child node processes
0628f26
chore: merge heisian-master
6d760f4
fix: restore node 4 min support
8967c02
test: only use .npmrc if a non-PR
cf923a8
fix: get tests to pass
3a6b8df
fix: travis CI build before-install
f711fb7
test: fork child node processes
183add9
test: fix typo in before_install
57c14a2
test: only add npmrc on master (#1147)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
I've installed tcp-socket via npm, and when I add
import TCPSocket from 'tcp-socket';
to my project, my webpack build fails with
ERROR in ./~/tcp-socket/src/tcp-socket.js
Module not found: Error: Cannot resolve module 'tcp-socket-tls' in /home/myuser/myproject/node_modules/tcp-socket/src
@ ./~/tcp-socket/src/tcp-socket.js 26:8-65
It seems that it's falling into the first if
clause in tcp-socket.js
:
if (typeof define === 'function' && define.amd) {
// amd
define(['tcp-socket-tls'], factory.bind(null, navigator));
}
when it seems that the module.exports
behavior later on is what we want. Any ideas?
I'm using emailjs on Cordova using the cordova-plugin-chrome-apps-sockets-tcp plugin. By default emailjs is still using forge with Cordova, but after editing the code below to use native TLS everything still works great. Is the fix no longer needed?
chrome.runtime.getPlatformInfo(function(platformInfo) {
//
// FIX START
//
if (platformInfo.os.indexOf("cordova") !== -1) {
// chrome.sockets.tcp.secure is not functional on cordova
// https://github.com/MobileChromeApps/mobile-chrome-apps/issues/269
self._useLegacySocket = false;
self._useForgeTls = false;
} else {
self._useLegacySocket = true;
self._useForgeTls = false;
}
//
// FIX END
//
// fire up the socket
if (self._useLegacySocket) {
self._createLegacySocket();
} else {
self._createSocket();
}
});
5.10.0
to 5.10.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
webdriverio is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 5 commits.
4aa1eb0
v5.10.1
6d2894d
webdriverio: change argument type for setValue and addValue commands (#4064)
bc9ab62
Types fix for users with noImplicitAny set to true (#4062)
dd63394
wdio-mocha-framework: fix pending test test:end (#4056)
19a5e5f
update changelog
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.