@foo-software/content 0.1.406 → 0.1.408
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.
- package/dist/en.js +1 -1311
- package/dist/getContent.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -3
- package/src/en.js +3 -3
- package/index.js +0 -0
package/dist/getContent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.contentByLanguage=exports.DEFAULT_LANGUAGE=void 0;var _lodash=_interopRequireDefault(require("lodash.get")),en=_interopRequireWildcard(require("./en"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var
|
|
1
|
+
"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.contentByLanguage=exports.DEFAULT_LANGUAGE=void 0;var _lodash=_interopRequireDefault(require("lodash.get")),en=_interopRequireWildcard(require("./en"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var desc,newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){"default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)&&((desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null)&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key])}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DEFAULT_LANGUAGE="en";exports.DEFAULT_LANGUAGE=DEFAULT_LANGUAGE;var contentByLanguage={en:en};exports.contentByLanguage=contentByLanguage;var _default=function(_ref){var contentCode=_ref.contentCode,contentKey=_ref.contentKey,data=_ref.data,language=_ref.language,content=(0,_lodash.default)(contentByLanguage,"[".concat(language||DEFAULT_LANGUAGE,"][").concat(contentKey,"]"),null);return data&&content&&content.get?content.get(data):contentCode?"".concat(content," [").concat(contentCode,"]"):content};exports.default=_default;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"
|
|
1
|
+
"use strict";function _typeof(obj){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj})(obj)}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"DEFAULT_LANGUAGE",{enumerable:!0,get:function(){return _getContent.DEFAULT_LANGUAGE}}),exports.en=void 0,Object.defineProperty(exports,"getContent",{enumerable:!0,get:function(){return _getContent.default}});var en=_interopRequireWildcard(require("./en"));exports.en=en;var _getContent=_interopRequireWildcard(require("./getContent"));function _getRequireWildcardCache(nodeInterop){if("function"!=typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(null===obj||"object"!==_typeof(obj)&&"function"!=typeof obj)return{default:obj};var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var desc,newObj={},hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){"default"!==key&&Object.prototype.hasOwnProperty.call(obj,key)&&((desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null)&&(desc.get||desc.set)?Object.defineProperty(newObj,key,desc):newObj[key]=obj[key])}return newObj.default=obj,cache&&cache.set(obj,newObj),newObj}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foo-software/content",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.408",
|
|
4
4
|
"description": "Content for Foo",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
"license": "UNLICENSED",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "npm run transpile && npm run minify:js:en && npm run minify:js:getContent && npm run minify:js:index",
|
|
11
|
+
"clean": "rimraf dist",
|
|
11
12
|
"transpile": "npx babel src --out-dir dist",
|
|
12
13
|
"minify:js:en": "npx uglifyjs dist/en.js -o dist/en.js -c",
|
|
13
14
|
"minify:js:getContent": "npx uglifyjs dist/getContent.js -o dist/getContent.js -c",
|
|
14
|
-
"minify:js:index": "npx uglifyjs dist/index.js -o dist/index.js -c"
|
|
15
|
+
"minify:js:index": "npx uglifyjs dist/index.js -o dist/index.js -c",
|
|
16
|
+
"prepare": "npm run clean && npm run build"
|
|
15
17
|
},
|
|
16
18
|
"dependencies": {
|
|
17
19
|
"lodash.get": "^4.4.2"
|
|
@@ -20,7 +22,8 @@
|
|
|
20
22
|
"@babel/cli": "^7.2.3",
|
|
21
23
|
"@babel/core": "^7.2.2",
|
|
22
24
|
"@babel/preset-env": "^7.2.3",
|
|
25
|
+
"rimraf": "^2.6.3",
|
|
23
26
|
"uglify-js": "^3.4.9"
|
|
24
27
|
},
|
|
25
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "e086c5a3bc1d14f62e998a16bdcd7c099521e2b3"
|
|
26
29
|
}
|
package/src/en.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_CTA = 'Come back again!';
|
|
2
|
-
export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_HEADLINE = 'Account
|
|
2
|
+
export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_HEADLINE = 'Account Cancelled';
|
|
3
3
|
export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_MAIN = {
|
|
4
4
|
get: ({ accountName }) =>
|
|
5
|
-
`Sorry to see you go! "${accountName}" has been
|
|
5
|
+
`Sorry to see you go! "${accountName}" has been cancelled. A prorated refund will be issued shortly (if applicable). Feel free to contact us with any questions.`,
|
|
6
6
|
};
|
|
7
|
-
export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_SUBJECT = 'Account
|
|
7
|
+
export const EMAIL_TEMPLATE_ACCOUNT_CANCEL_SUBJECT = 'Account Cancelled';
|
|
8
8
|
export const EMAIL_TEMPLATE_ACCOUNT_USER_ADDED_CTA =
|
|
9
9
|
'Manage your accounts here.';
|
|
10
10
|
export const EMAIL_TEMPLATE_ACCOUNT_USER_ADDED_HEADLINE = `You're Added!`;
|
package/index.js
DELETED
|
File without changes
|