diff --git a/.changeset/chatty-ladybugs-beg.md b/.changeset/chatty-ladybugs-beg.md new file mode 100644 index 000000000..40d5a4cd7 --- /dev/null +++ b/.changeset/chatty-ladybugs-beg.md @@ -0,0 +1,5 @@ +--- +'@openfn/language-salesforce': patch +--- + +update jsforce and remove unused packages diff --git a/packages/salesforce/package.json b/packages/salesforce/package.json index 7b8c4997a..6c6134109 100644 --- a/packages/salesforce/package.json +++ b/packages/salesforce/package.json @@ -31,27 +31,25 @@ "configuration-schema.json" ], "dependencies": { - "@openfn/language-common": "1.10.2", - "JSONPath": "^0.10.0", - "axios": "^0.21.1", - "jsforce": "^1.11.0", - "jsonpath": "^1.1.1", - "mustache": "^2.2.0", + "@openfn/language-common": "workspace:*", + "axios": "^0.21.4", + "jsforce": "^1.11.1", "lodash": "^4.17.21", - "yargs": "^3.30.0" + "yargs": "^3.32.0" }, "devDependencies": { "assertion-error": "1.1.0", "chai": "4.3.6", "deep-eql": "4.1.1", "esno": "^0.16.3", + "jsonpath": "^1.1.1", "mocha": "7.2.0", "nock": "13.2.9", "rimraf": "3.0.2", - "sinon": "^14.0.1", + "sinon": "^14.0.2", "type-detect": "1.0.0" }, "type": "module", "types": "types/index.d.ts", "main": "dist/index.cjs" -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9f65ca2b9..8a254b3f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1584,28 +1584,19 @@ importers: packages/salesforce: dependencies: '@openfn/language-common': - specifier: 1.10.2 + specifier: workspace:* version: link:../common - JSONPath: - specifier: ^0.10.0 - version: 0.10.0 axios: - specifier: ^0.21.1 + specifier: ^0.21.4 version: 0.21.4 jsforce: - specifier: ^1.11.0 - version: 1.11.0 - jsonpath: - specifier: ^1.1.1 - version: 1.1.1 + specifier: ^1.11.1 + version: 1.11.1 lodash: specifier: ^4.17.21 version: 4.17.21 - mustache: - specifier: ^2.2.0 - version: 2.3.2 yargs: - specifier: ^3.30.0 + specifier: ^3.32.0 version: 3.32.0 devDependencies: assertion-error: @@ -1620,6 +1611,9 @@ importers: esno: specifier: ^0.16.3 version: 0.16.3 + jsonpath: + specifier: ^1.1.1 + version: 1.1.1 mocha: specifier: 7.2.0 version: 7.2.0 @@ -1630,8 +1624,8 @@ importers: specifier: 3.0.2 version: 3.0.2 sinon: - specifier: ^14.0.1 - version: 14.0.1 + specifier: ^14.0.2 + version: 14.0.2 type-detect: specifier: 1.0.0 version: 1.0.0 @@ -3294,14 +3288,20 @@ packages: type-detect: 4.0.8 dev: true - /@sinonjs/fake-timers@6.0.1: - resolution: {integrity: sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==} + /@sinonjs/commons@3.0.0: + resolution: {integrity: sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==} dependencies: - '@sinonjs/commons': 1.8.3 + type-detect: 4.0.8 dev: true - /@sinonjs/fake-timers@7.1.2: - resolution: {integrity: sha512-iQADsW4LBMISqZ6Ci1dupJL9pprqwcVFTcOsEmQOEhW+KLCVn/Y4Jrvg2k19fIHCp+iFprriYPTdRcQR8NbUPg==} + /@sinonjs/fake-timers@10.3.0: + resolution: {integrity: sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==} + dependencies: + '@sinonjs/commons': 3.0.0 + dev: true + + /@sinonjs/fake-timers@6.0.1: + resolution: {integrity: sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==} dependencies: '@sinonjs/commons': 1.8.3 dev: true @@ -3320,14 +3320,6 @@ packages: type-detect: 4.0.8 dev: true - /@sinonjs/samsam@6.1.1: - resolution: {integrity: sha512-cZ7rKJTLiE7u7Wi/v9Hc2fs3Ucc3jrWeMgPHbbTCeVAB2S0wOBbYlkJVeNSL04i7fdhT8wIbDq1zhC/PXTD2SA==} - dependencies: - '@sinonjs/commons': 1.8.3 - lodash.get: 4.4.2 - type-detect: 4.0.8 - dev: true - /@sinonjs/samsam@7.0.1: resolution: {integrity: sha512-zsAk2Jkiq89mhZovB2LLOdTCxJF4hqqTToGP0ASWlhp4I1hqOjcfmZGafXntCN7MDC6yySH0mFHrYtHceOeLmw==} dependencies: @@ -4904,8 +4896,8 @@ packages: engines: {node: '>=0.2.0'} dev: false - /buildcheck@0.0.3: - resolution: {integrity: sha512-pziaA+p/wdVImfcbsZLNF32EiWyujlQLwolMqUQE8xpKNOH7KmZQaY8sXN7DGOEzPAElo9QTaeNRfGnf3iOJbA==} + /buildcheck@0.0.6: + resolution: {integrity: sha512-8f9ZJCUXyT1M35Jx7MkBgmBMo3oHTTBIPLiY9xyL0pl3T5RwcPEY8cUHr5LBNfu/fk6c2T4DJZuVM/8ZZT2D2A==} engines: {node: '>=10.0.0'} requiresBuild: true dev: false @@ -5539,12 +5531,12 @@ packages: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} dev: false - /cpu-features@0.0.4: - resolution: {integrity: sha512-fKiZ/zp1mUwQbnzb9IghXtHtDoTMtNeb8oYGx6kX2SYfhnG0HNdBEBIzB9b5KlXu5DQPhfy3mInbBxFcgwAr3A==} + /cpu-features@0.0.8: + resolution: {integrity: sha512-BbHBvtYhUhksqTjr6bhNOjGgMnhwhGTQmOoZGD+K7BCaQDCuZl/Ve1ZxUSMRwVC4D/rkCPQ2MAIeYzrWyK7eEg==} engines: {node: '>=10.0.0'} requiresBuild: true dependencies: - buildcheck: 0.0.3 + buildcheck: 0.0.6 nan: 2.17.0 dev: false optional: true @@ -5954,6 +5946,11 @@ packages: resolution: {integrity: sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==} engines: {node: '>=0.3.1'} + /diff@5.1.0: + resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==} + engines: {node: '>=0.3.1'} + dev: true + /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -6716,6 +6713,7 @@ packages: resolution: {integrity: sha512-+JpPZam9w5DuJ3Q67SqsMGtiHKENSMRVoxvArfJZK01/BfLEObtZ6orJa/MtoGNR/rfMgp5837T41PAmTwAv/A==} engines: {node: '>=0.4.0'} hasBin: true + dev: true /esprima@3.1.3: resolution: {integrity: sha512-AWwVMNxwhN8+NIPQzAQZCm7RkLC4RbM3B1OobMuyp3i+w73X57KCKaVIxaRZb+DYCojq7rspo+fmuQfAboyhFg==} @@ -7463,7 +7461,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.1.2 + minimatch: 3.0.4 once: 1.4.0 path-is-absolute: 1.0.1 dev: true @@ -8614,8 +8612,8 @@ packages: engines: {node: '>=4'} hasBin: true - /jsforce@1.11.0: - resolution: {integrity: sha512-vYNXJXXdz9ZQNdfRqq/MCJ/zU7JGA7iEduwafQDzChR9FeqXgTNfHTppLVbw9mIniKkQZemmxSOtl7N04lj/5Q==} + /jsforce@1.11.1: + resolution: {integrity: sha512-u1vL2F4FYRNccwjwA3ftMULEf9Ekeyvsz7vYKeQ03sKg6m7DNwB2O9d0erCM7k5sQUJ44J39CI05nokDKN3ktw==} engines: {node: '>=4.0'} hasBin: true dependencies: @@ -8631,9 +8629,9 @@ packages: multistream: 2.1.1 opn: 5.5.0 promise: 7.3.1 - readable-stream: 2.3.7 + readable-stream: 2.3.8 request: 2.88.2 - xml2js: 0.4.23 + xml2js: 0.5.0 dev: false /jsforce@1.5.1: @@ -8745,6 +8743,7 @@ packages: esprima: 1.2.2 static-eval: 2.0.2 underscore: 1.12.1 + dev: true /jsonwebtoken@7.4.3: resolution: {integrity: sha512-7WWGEZ+/xedHUHLDvSwvN7LbmLIEgOuBNQOBKvfX5zpLok5q6873aCR2zOuJ/DrORp/DlyYImz06nlNoRCWugw==} @@ -8915,7 +8914,7 @@ packages: resolution: {integrity: sha512-3p6ZOGNbiX4CdvEd1VcE6yi78UrGNpjHO33noGwHCnT/o2fyllJDepsm8+mFFv/DvtwFHht5HIHSyOy5a+ChVQ==} engines: {node: '>=4'} dependencies: - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 parse-json: 2.2.0 pify: 2.3.0 strip-bom: 3.0.0 @@ -8935,7 +8934,7 @@ packages: resolution: {integrity: sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw==} engines: {node: '>=6'} dependencies: - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 js-yaml: 3.14.1 pify: 4.0.1 strip-bom: 3.0.0 @@ -9633,7 +9632,7 @@ packages: resolution: {integrity: sha512-xasv76hl6nr1dEy3lPvy7Ej7K/Lx3O/FCvwge8PeVJpciPPoNCbaANcNiBug3IpdvTveZUcAV0DJzdnUDMesNQ==} dependencies: inherits: 2.0.4 - readable-stream: 2.3.7 + readable-stream: 2.3.8 dev: false /mustache@2.3.2: @@ -9731,21 +9730,11 @@ packages: path-to-regexp: 1.8.0 dev: true - /nise@5.1.1: - resolution: {integrity: sha512-yr5kW2THW1AkxVmCnKEh4nbYkJdB3I7LUkiUgOvEkOp414mc2UMaHMA7pjq1nYowhdoJZGwEKGaQVbxfpWj10A==} - dependencies: - '@sinonjs/commons': 1.8.3 - '@sinonjs/fake-timers': 9.1.2 - '@sinonjs/text-encoding': 0.7.2 - just-extend: 4.2.1 - path-to-regexp: 1.8.0 - dev: true - - /nise@5.1.2: - resolution: {integrity: sha512-+gQjFi8v+tkfCuSCxfURHLhRhniE/+IaYbIphxAN2JRR9SHKhY8hgXpaXiYfHdw+gcGe4buxgbprBQFab9FkhA==} + /nise@5.1.4: + resolution: {integrity: sha512-8+Ib8rRJ4L0o3kfmyVCL7gzrohyDe0cMFTBa2d364yIrEGMEoetznKJx899YxjybU6bL9SQkYPSBBs1gyYs8Xg==} dependencies: '@sinonjs/commons': 2.0.0 - '@sinonjs/fake-timers': 7.1.2 + '@sinonjs/fake-timers': 10.3.0 '@sinonjs/text-encoding': 0.7.2 just-extend: 4.2.1 path-to-regexp: 1.8.0 @@ -9811,7 +9800,7 @@ packages: resolution: {integrity: sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw==} dependencies: object.getownpropertydescriptors: 2.1.6 - semver: 5.7.1 + semver: 5.7.2 dev: true /node-fetch@2.6.9: @@ -11271,6 +11260,7 @@ packages: /semver@5.7.1: resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} hasBin: true + dev: false /semver@5.7.2: resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} @@ -11401,25 +11391,14 @@ packages: util: 0.12.5 dev: true - /sinon@14.0.1: - resolution: {integrity: sha512-JhJ0jCiyBWVAHDS+YSjgEbDn7Wgz9iIjA1/RK+eseJN0vAAWIWiXBdrnb92ELPyjsfreCYntD1ORtLSfIrlvSQ==} - dependencies: - '@sinonjs/commons': 1.8.3 - '@sinonjs/fake-timers': 9.1.2 - '@sinonjs/samsam': 6.1.1 - diff: 5.0.0 - nise: 5.1.1 - supports-color: 7.2.0 - dev: true - /sinon@14.0.2: resolution: {integrity: sha512-PDpV0ZI3ZCS3pEqx0vpNp6kzPhHrLx72wA0G+ZLaaJjLIYeE0n8INlgaohKuGy7hP0as5tbUd23QWu5U233t+w==} dependencies: '@sinonjs/commons': 2.0.0 '@sinonjs/fake-timers': 9.1.2 '@sinonjs/samsam': 7.0.1 - diff: 5.0.0 - nise: 5.1.2 + diff: 5.1.0 + nise: 5.1.4 supports-color: 7.2.0 dev: true @@ -11682,7 +11661,7 @@ packages: asn1: 0.2.6 bcrypt-pbkdf: 1.0.2 optionalDependencies: - cpu-features: 0.0.4 + cpu-features: 0.0.8 nan: 2.17.0 dev: false @@ -11713,6 +11692,7 @@ packages: resolution: {integrity: sha512-N/D219Hcr2bPjLxPiV+TQE++Tsmrady7TqAJugLy7Xk1EumfDWS/f5dtBbkRCGE7wKKXuYockQoj8Rm2/pVKyg==} dependencies: escodegen: 1.14.3 + dev: true /static-extend@0.1.2: resolution: {integrity: sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==} @@ -12641,6 +12621,7 @@ packages: /underscore@1.12.1: resolution: {integrity: sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==} + dev: true /underscore@1.13.6: resolution: {integrity: sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==}