angular-phrase
Advanced tools
Comparing version 2.1.4 to 2.1.5
@@ -89,36 +89,2 @@ /******/ (function(modules) { // webpackBootstrap | ||
/***/ "./src/Data_utils.ts": | ||
/*!***************************!*\ | ||
!*** ./src/Data_utils.ts ***! | ||
\***************************/ | ||
/*! exports provided: default */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
var DataUtils = /** @class */ (function () { | ||
function DataUtils() { | ||
} | ||
DataUtils.getScript = function (source, callback) { | ||
var script = document.createElement('script'); | ||
var prior = document.getElementsByTagName('script')[0]; | ||
script.async = true; | ||
script.onload = script.onreadystatechange = function (_, isAbort) { | ||
if (isAbort || !script.readyState || /loaded|complete/.test(script.readyState)) { | ||
script.onload = script.onreadystatechange = null; | ||
script = undefined; | ||
if (!isAbort && callback) | ||
setTimeout(callback, 0); | ||
} | ||
}; | ||
script.src = source; | ||
prior.parentNode.insertBefore(script, prior); | ||
}; | ||
return DataUtils; | ||
}()); | ||
/* harmony default export */ __webpack_exports__["default"] = (DataUtils); | ||
/***/ }), | ||
/***/ "./src/angular-phrase.ts": | ||
@@ -133,3 +99,3 @@ /*!*******************************!*\ | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _Data_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Data_utils */ "./src/Data_utils.ts"); | ||
/* harmony import */ var _data_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data-utils */ "./src/data-utils.ts"); | ||
@@ -143,4 +109,3 @@ var phrase = angular.module("phrase", ['pascalprecht.translate', 'ng']); | ||
phrase.config(["$provide", function ($provide) { | ||
return $provide.decorator("$translate", ["$delegate", "phraseEnabled", "phraseDecoratorPrefix", "phraseDecoratorSuffix", | ||
function ($translate, phraseEnabled, phraseDecoratorPrefix, phraseDecoratorSuffix) { | ||
return $provide.decorator("$translate", ["$delegate", "phraseEnabled", "phraseDecoratorPrefix", "phraseDecoratorSuffix", function ($translate, phraseEnabled, phraseDecoratorPrefix, phraseDecoratorSuffix) { | ||
if (phraseEnabled) { | ||
@@ -154,4 +119,3 @@ $translate._instant = $translate.instant; | ||
phrase.config(["$compileProvider", function ($compileProvider) { | ||
return $compileProvider.directive('translate', ["phraseEnabled", "phraseDecoratorPrefix", "phraseDecoratorSuffix", | ||
function (phraseEnabled, phraseDecoratorPrefix, phraseDecoratorSuffix) { | ||
return $compileProvider.directive('translate', ["phraseEnabled", "phraseDecoratorPrefix", "phraseDecoratorSuffix", function (phraseEnabled, phraseDecoratorPrefix, phraseDecoratorSuffix) { | ||
if (!phraseEnabled) { | ||
@@ -187,4 +151,3 @@ return {}; | ||
}]); | ||
phrase.directive("phraseJavascript", ["phraseEnabled", "phraseProjectId", "phraseAutoLowercase", "$window", | ||
function (phraseEnabled, phraseProjectId, phraseAutoLowercase, $window) { | ||
phrase.directive("phraseJavascript", ["phraseEnabled", "phraseProjectId", "phraseAutoLowercase", "$window", function (phraseEnabled, phraseProjectId, phraseAutoLowercase, $window) { | ||
return { | ||
@@ -200,3 +163,3 @@ restrict: "EA", | ||
}; | ||
_Data_utils__WEBPACK_IMPORTED_MODULE_0__["default"].getScript(url); | ||
_data_utils__WEBPACK_IMPORTED_MODULE_0__["default"].getScript(url); | ||
} | ||
@@ -208,2 +171,36 @@ } | ||
/***/ }), | ||
/***/ "./src/data-utils.ts": | ||
/*!***************************!*\ | ||
!*** ./src/data-utils.ts ***! | ||
\***************************/ | ||
/*! exports provided: default */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
var DataUtils = /** @class */ (function () { | ||
function DataUtils() { | ||
} | ||
DataUtils.getScript = function (source, callback) { | ||
var script = document.createElement('script'); | ||
var prior = document.getElementsByTagName('script')[0]; | ||
script.async = true; | ||
script.onload = script.onreadystatechange = function (_, isAbort) { | ||
if (isAbort || !script.readyState || /loaded|complete/.test(script.readyState)) { | ||
script.onload = script.onreadystatechange = null; | ||
script = undefined; | ||
if (!isAbort && callback) | ||
setTimeout(callback, 0); | ||
} | ||
}; | ||
script.src = source; | ||
prior.parentNode.insertBefore(script, prior); | ||
}; | ||
return DataUtils; | ||
}()); | ||
/* harmony default export */ __webpack_exports__["default"] = (DataUtils); | ||
/***/ }) | ||
@@ -210,0 +207,0 @@ |
{ | ||
"name": "angular-phrase", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "Use angular-translate with the powerful PhraseApp In-Context-Editor for easy translation management in AngularJS applications", | ||
@@ -28,14 +28,14 @@ "repository": { | ||
"eslint": "^6.5.1", | ||
"karma": "^4.3.0", | ||
"karma": "^5.0.5", | ||
"karma-chrome-launcher": "^2.0.0", | ||
"karma-firefox-launcher": "^1.2.0", | ||
"karma-jasmine": "^2.0.1", | ||
"karma-jasmine": "^3.1.1", | ||
"karma-spec-reporter": "^0.0.32", | ||
"karma-webpack": "^4.0.2", | ||
"source-map-loader": "^0.2.4", | ||
"terser-webpack-plugin": "^2.1.3", | ||
"ts-loader": "^6.2.0", | ||
"terser-webpack-plugin": "^2.3.0", | ||
"ts-loader": "^7.0.4", | ||
"typescript": "^3.6.4", | ||
"webpack": "^4.41.0", | ||
"webpack-cli": "^3.3.9" | ||
"webpack": "^4.41.3", | ||
"webpack-cli": "^3.3.10" | ||
}, | ||
@@ -42,0 +42,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40459
201