179 Commits

Author SHA1 Message Date
guybedford
9bcd118d8f ensure we still throw on multiple anonymous defines (#1116) 2016-02-23 18:01:22 +02:00
guybedford
bd8b0d0618 support anon and named AMD in the same file (#1116) 2016-02-23 17:53:21 +02:00
guybedford
dd64b11faf integrity execution fix 2016-02-10 15:18:53 +02:00
guybedford
e472ecce1a correct System.register regex (#1071) 2016-02-03 15:04:01 +02:00
guybedford
7ce254ded8 wildcard bundle test 2016-01-19 22:23:11 +02:00
guybedford
cd39187ad8 SystemJS alias, packaging and bundling consistency formalization 2015-12-29 17:29:35 +02:00
guybedford
faa6e63bfd merge map into core 2015-12-29 17:04:57 +02:00
guybedford
7202794d18 System.register generic __moduleName arg 2015-12-14 17:40:12 +02:00
Artem Khodyush
93a4f84662 add tests for package-local alias with default export (cjs one fails)
also, change two tests added earlier to make loader configuration unique for each test -
I did not notice at the time that results of System.config() persist across tests
2015-11-29 08:37:09 -08:00
Artem Khodyush
0e7cb3cddd add test for alias meta in package config 2015-11-24 06:57:00 -08:00
Colm Brady
09a0d878cc bugfix(https://github.com/systemjs/systemjs/issues/919)
- Adding unit test to existing commonjs-requires.js file.
- Remove redundant file.
2015-11-19 07:50:40 +13:00
Colm Brady
dbf53dc539 Proposed fix for https://github.com/systemjs/systemjs/issues/919
- Fix code in cjs.js to correctly match last index of comments.
- Add test module that includes the require('') at end of comment string
- Add unit test to prove the module can be loaded OK with the comment present
2015-11-18 16:28:02 +13:00
Guy Bedford
be199a22c2 Merge pull request #726 from systemjs/strings-v2
Strings v2
2015-11-06 18:52:35 +02:00
guybedford
30df021fd8 fix AMD define global leak in Node 2015-10-18 23:32:49 +02:00
guybedford
0e43c76257 define leak test 2015-10-18 23:09:51 +02:00
guybedford
5b8bfbf6cc ensure global format globals are properly reverted 2015-10-18 17:56:47 +02:00
guybedford
01670edac1 test for # loading 2015-09-22 19:31:50 +02:00
guybedford
fa2d32c6a0 ensure format detection is disabled for bundles 2015-09-18 11:25:49 +02:00
guybedford
118d086c2b backtracking main loading test 2015-09-14 21:30:03 +02:00
guybedford
e8826947d2 package relative and self-loading adjustments 2015-09-14 16:07:29 +02:00
guybedford
2797114a4d negation reversion for non member conditions, boolean conditional ordering 2015-09-10 10:37:55 +02:00
guybedford
1cfd5fe623 include both conditional package map tests 2015-09-09 21:55:37 +02:00
guybedford
5b84a433d3 negation adjustment, boolean fix for package map 2015-09-09 21:52:51 +02:00
guybedford
cd4a8352b7 package-level conditional interpolation, | as conditional member expression, conditional build adjustments 2015-09-09 15:08:51 +02:00
guybedford
5ad84497bd support multiple config paths per package 2015-09-08 00:13:17 +02:00
guybedford
7a080167ff support package-level depCache 2015-09-07 21:25:40 +02:00
guybedford
4bed51330b support non-standard versions in test 2015-09-06 10:09:20 +02:00
guybedford
4968f1a51f correct slow register regex (#762) 2015-09-05 15:37:10 +02:00
guybedford
d782a4b1e0 ensure prefixing under systemjs not system 2015-09-04 20:56:30 +02:00
guybedford
89ea2940bf packageConfigPaths edge cases 2015-09-04 20:05:16 +02:00
guybedford
3e40b1e332 packageConfigPaths config file flexibility 2015-09-04 18:40:28 +02:00
guybedford
897403e057 fix test conflict 2015-09-03 18:28:43 +02:00
guybedford
d0e4efb537 defaultExtension to always apply, loader meta to skip package defaultExtension (#756) 2015-09-03 18:22:33 +02:00
guybedford
336008b488 support System.transpiler = false 2015-09-03 09:13:58 +02:00
guybedford
86c1892c1a comment in string test 2015-09-02 15:30:24 +02:00
guybedford
9625e54754 experimental string tracking as well 2015-09-02 15:30:24 +02:00
guybedford
9ded329fd3 support node version as well 2015-09-02 14:58:52 +02:00
guybedford
55aa65936e implement System.version 2015-09-02 14:51:23 +02:00
guybedford
06fff2d5b7 packagePaths -> packageConfigPaths 2015-08-27 17:52:09 +02:00
guybedford
37c1360d96 fix test conflicts, ie8 tests, edge case refinements 2015-08-27 16:22:37 +02:00
guybedford
4a0a980dc2 equivalence check tweak 2015-08-27 15:54:04 +02:00
guybedford
2b7609925a package naming edge cases and specificity (#722) 2015-08-27 15:48:18 +02:00
guybedford
ea16d855cf package global map fix 2015-08-24 22:58:05 +02:00
guybedford
aab3d9c298 package self-referencing (#410) 2015-08-20 13:45:17 +02:00
guybedford
94274088d0 support node core module loading 2015-08-20 13:41:12 +02:00
guybedford
ce80316eae test package extension preferences 2015-08-20 12:44:48 +02:00
guybedford
3cdf2c437e dynamic configuration requests for packages 2015-08-20 12:36:01 +02:00
guybedford
5622e15a07 ie8 adjustment 2015-08-18 11:36:16 +02:00
guybedford
37c051c1d7 integrity, nonce test tweaks 2015-08-18 11:34:41 +02:00
Matthew Justin Bauer
18e6945646 Enable setting properties on script element.
The script loader will use load metadata to set script properties. This allows what is in the script tag to be set in meta.

There are two primary use cases: CSP nonce and subresource integrity.

Users of SystemJS wanting to take advantage of CSP can set a "nonce" value in their CSP config. Setting the meta attribute "nonce" for plugins and formats that cannot use CSP allows safely bypassing CSP. Note that this will only work in places where "document" is available. See the test-csp-inline.html file for a full example.

In addition, subresource checking mentions in #639 is also implemented. In the same way setting "integrity" in the meta should make this possible. See test-csp.html for a full example.

Post Rebase Notes:
* Corrected indention.
* Fix load.metadata issue.
* Fixed test-csp-inline.html stuff.
* White-list correct properties.
* Reword error messages.
2015-08-15 16:03:17 -05:00