@ambassify/email-client
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -14,2 +14,12 @@ # Changelog | ||
## 3.0.0 | ||
#### :boom: Breaking Change | ||
- Target [ambassify-approved browsers](https://github.com/ambassify/browserslist-config) during build | ||
#### :nail_care: Polish | ||
- Switch to `@babel/polyfills` for polyfilling. This replaces the `@babel/runtime-corejs3` peer dependency with `@babel/runtime` and `core-js-pure` peer dependencies. It makes sure only polyfills required for the `targets` config are added during build. | ||
## 2.1.0 | ||
@@ -90,1 +100,11 @@ | ||
"use strict"; | ||
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct"); | ||
const AmbassifyApi = require('@ambassify/ambassify-client'); | ||
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); | ||
const { | ||
path | ||
} = require('@ambassify/url-extensions'); | ||
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/taggedTemplateLiteral")); | ||
class EmailApi extends AmbassifyApi { | ||
platform(body, options) { | ||
return this.post('/platform', body, options); | ||
} | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck")); | ||
organization(organizationId, body, options) { | ||
return this.post(path.escape`/organization/${organizationId}`, body, options); | ||
} | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass")); | ||
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits")); | ||
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn")); | ||
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf")); | ||
var _templateObject, _templateObject2; | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
var AmbassifyApi = require('@ambassify/ambassify-client'); | ||
var _require = require('@ambassify/url-extensions'), | ||
path = _require.path; | ||
var EmailApi = /*#__PURE__*/function (_AmbassifyApi) { | ||
(0, _inherits2["default"])(EmailApi, _AmbassifyApi); | ||
var _super = _createSuper(EmailApi); | ||
function EmailApi() { | ||
(0, _classCallCheck2["default"])(this, EmailApi); | ||
return _super.apply(this, arguments); | ||
contactOrganization(organizationId, body, options) { | ||
return this.post(path.escape`/organization/${organizationId}/contact`, body, options); | ||
} | ||
(0, _createClass2["default"])(EmailApi, [{ | ||
key: "platform", | ||
value: function platform(body, options) { | ||
return this.post('/platform', body, options); | ||
} | ||
}, { | ||
key: "organization", | ||
value: function organization(organizationId, body, options) { | ||
return this.post(path.escape(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["/organization/", ""])), organizationId), body, options); | ||
} | ||
}, { | ||
key: "contactOrganization", | ||
value: function contactOrganization(organizationId, body, options) { | ||
return this.post(path.escape(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["/organization/", "/contact"])), organizationId), body, options); | ||
} | ||
}]); | ||
return EmailApi; | ||
}(AmbassifyApi); | ||
} | ||
module.exports = EmailApi; |
{ | ||
"name": "@ambassify/email-client", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "API Client for email service", | ||
@@ -20,6 +20,7 @@ "engines": { | ||
"dependencies": { | ||
"@ambassify/ambassify-client": "^4.1.0", | ||
"@ambassify/ambassify-client": "^5.0.0", | ||
"@ambassify/url-extensions": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@ambassify/browserslist-config": "^1.0.1", | ||
"@babel/cli": "^7.12.16", | ||
@@ -29,2 +30,3 @@ "@babel/core": "^7.12.16", | ||
"@babel/preset-env": "^7.12.16", | ||
"babel-plugin-polyfill-corejs3": "^0.3.0", | ||
"eslint": "^7.20.0", | ||
@@ -34,5 +36,2 @@ "eslint-config-ambassify": "^2.0.2", | ||
}, | ||
"peerDependencies": { | ||
"@babel/runtime-corejs3": ">=7" | ||
}, | ||
"publishConfig": { | ||
@@ -49,3 +48,7 @@ "access": "public" | ||
"homepage": "https://github.com/ambassify/api-clients#readme", | ||
"gitHead": "a05866fc9f60257ad978e7186ee1c4f53e5eaf43" | ||
"peerDependencies": { | ||
"@babel/runtime": ">=7", | ||
"core-js-pure": ">=3" | ||
}, | ||
"gitHead": "fda8c8966b07932dce62f44438c420020ce521fe" | ||
} |
4564
4
9
38
+ Added@ambassify/ambassify-client@5.0.3(transitive)
+ Added@ambassify/fetch-api@4.1.1(transitive)
+ Added@babel/runtime@7.24.6(transitive)
- Removed@ambassify/ambassify-client@4.1.0(transitive)
- Removed@ambassify/fetch-api@3.4.0(transitive)
- Removed@babel/runtime-corejs3@7.24.6(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.11.1(transitive)