199 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
e472ecce1a correct System.register regex (#1071) 2016-02-03 15:04:01 +02:00
guybedford
7ea9734098 update tests for new __moduleName format 2016-02-02 20:43:04 +02:00
guybedford
0a26819384 csp package loading support 2016-02-01 16:10:09 +02:00
guybedford
cd39187ad8 SystemJS alias, packaging and bundling consistency formalization 2015-12-29 17:29:35 +02:00
guybedford
7202794d18 System.register generic __moduleName arg 2015-12-14 17:40:12 +02:00
guybedford
df2c4d0e58 cjs require variation cases 2015-12-03 15:29:06 +02:00
guybedford
715b27551e ignore require expressions, trailing slash 2015-12-03 14:06:01 +02:00
Guy Bedford
6db4007288 Merge pull request #929 from fictitious/package-local-alias
Fix for alias meta in package config
2015-12-01 22:15:13 +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
guybedford
5b0c782fd1 cjs trailing slash edge cases 2015-11-27 15:35:26 +02: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
01670edac1 test for # loading 2015-09-22 19:31:50 +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
84cd10b531 clarify extension handling 2015-09-13 17:34:22 +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
3adf8a9d10 ensure test case catches register perf issue 2015-09-05 15:38:42 +02:00
guybedford
4968f1a51f correct slow register regex (#762) 2015-09-05 15:37:10 +02:00
guybedford
7c9c93b303 add 0.19 deprecation warnings (#758) 2015-09-05 12:58:53 +02:00
guybedford
961bc37fd7 support package config array main 2015-09-04 22:23:13 +02:00
guybedford
77a1dd8ced system prefixing, warning 2015-09-04 19:07:58 +02:00
guybedford
3e40b1e332 packageConfigPaths config file flexibility 2015-09-04 18:40:28 +02:00
guybedford
d0e4efb537 defaultExtension to always apply, loader meta to skip package defaultExtension (#756) 2015-09-03 18:22:33 +02:00
guybedford
2f58dbf9b9 another esoteric case 2015-09-02 15:30:24 +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
37c1360d96 fix test conflicts, ie8 tests, edge case refinements 2015-08-27 16:22:37 +02:00
guybedford
2b7609925a package naming edge cases and specificity (#722) 2015-08-27 15:48:18 +02:00
guybedford
5ad9d2e524 add defaultExtension false test 2015-08-26 12:30:13 +02:00
guybedford
ea16d855cf package global map fix 2015-08-24 22:58:05 +02:00
guybedford
06f5d77f8b basePath implementation 2015-08-21 18:51:09 +02:00
guybedford
aab3d9c298 package self-referencing (#410) 2015-08-20 13:45:17 +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
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
guybedford
e7ac0ccb92 ie test fixes 2015-08-09 11:58:32 +02:00
guybedford
0a5f10a6bd sync normalize to apply package config, package env -> package env map 2015-08-09 01:04:08 +02:00
DivDE
7fb8eaf099 fixes #652 2015-08-05 15:33:39 +02:00
guybedford
1169d188ff update typescript tests for 1.6 nightly 2015-08-03 14:00:16 +02:00
guybedford
f531dfe26c fixes #602 2015-07-29 14:11:59 +02:00
guybedford
039134c947 test for #602 2015-07-28 13:42:57 +02:00