Skip to content

Commit

Permalink
Merge branch 'release-1.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dresha-dev committed Feb 20, 2020
2 parents bbfab10 + 24bb4fb commit a8d0f56
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 24 deletions.
18 changes: 11 additions & 7 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default inputs.map(input => {
name
},
watch: {
clearScreen : false
clearScreen: false
},
external: [
...localExternals,
Expand All @@ -66,7 +66,8 @@ export default inputs.map(input => {
'lib/uuid',
'lodash',
'module',
'moment'
'moment',
'fastestsmallesttextencoderdecoder'
],
plugins: [
resolve(),
Expand All @@ -81,11 +82,14 @@ export default inputs.map(input => {
}),
...(process.env.COVERAGE ? [istanbul()] : []),
babel({
presets: [[
'@babel/env', {
useBuiltIns: false
}
]]
presets: [
[
'@babel/env',
{
useBuiltIns: false
}
]
]
})
]
};
Expand Down
36 changes: 21 additions & 15 deletions environment/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,29 @@
define(['/node_modules/@oat-sa/tao-core-libs/dist/pathdefinition.js'], function(libPathDefinition) {
requirejs.config({
baseUrl: '/',
paths: Object.assign({}, {
css: '/node_modules/require-css/css',
json: '/node_modules/requirejs-plugins/src/json',
text: '/node_modules/requirejs-plugins/lib/text',
paths: Object.assign(
{},
{
css: '/node_modules/require-css/css',
json: '/node_modules/requirejs-plugins/src/json',
text: '/node_modules/requirejs-plugins/lib/text',

'qunit-parameterize': '/environment/qunit2-parameterize',
'jquery.simulate': '/node_modules/jquery-simulate/jquery.simulate',
qunit: '/node_modules/qunit/qunit',
test: '/test',
'qunit-parameterize': '/environment/qunit2-parameterize',
'jquery.simulate': '/node_modules/jquery-simulate/jquery.simulate',
qunit: '/node_modules/qunit/qunit',
test: '/test',

core: '/dist/core',
util: '/dist/util',
core: '/dist/core',
util: '/dist/util',

'jquery.mockjax': '/node_modules/jquery-mockjax/dist/jquery.mockjax',
'webcrypto-shim': '/node_modules/webcrypto-shim/webcrypto-shim',
'idb-wrapper': '/node_modules/idb-wrapper/idbstore'
}, libPathDefinition),
'jquery.mockjax': '/node_modules/jquery-mockjax/dist/jquery.mockjax',
'webcrypto-shim': '/node_modules/webcrypto-shim/webcrypto-shim',
'idb-wrapper': '/node_modules/idb-wrapper/idbstore',
fastestsmallesttextencoderdecoder:
'/node_modules/fastestsmallesttextencoderdecoder/NodeJS/EncoderAndDecoderNodeJS.min'
},
libPathDefinition
),
shim: {
'jquery.simulate': {
deps: ['jquery']
Expand All @@ -55,4 +61,4 @@ define(['/node_modules/@oat-sa/tao-core-libs/dist/pathdefinition.js'], function(
});

define('i18n', [], () => text => text);
});
});
7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oat-sa/tao-core-sdk",
"version": "1.1.0",
"version": "1.1.1",
"displayName": "TAO Core SDK",
"description": "Core libraries of TAO",
"homepage": "https://github.com/oat-sa/tao-core-sdk-fe#readme",
Expand Down Expand Up @@ -82,6 +82,7 @@
"tooltip.js": "1.3.2"
},
"dependencies": {
"fastestsmallesttextencoderdecoder": "^1.0.14",
"idb-wrapper": "1.7.0",
"webcrypto-shim": "0.1.4"
},
Expand Down
1 change: 1 addition & 0 deletions src/core/digest.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/
import _ from 'lodash';
import 'webcrypto-shim';
import { TextEncoder } from 'fastestsmallesttextencoderdecoder';

//get the native implementation of the CryptoSubtle
var subtle = window.crypto.subtle || window.crypto.webkitSubtle;
Expand Down

0 comments on commit a8d0f56

Please sign in to comment.