429 Commits

Author SHA1 Message Date
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
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
e6d6552ee2 fix defaultJSExtensions test for basePath 2015-08-21 18:53:48 +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
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
8fc4bb60db register only test 2015-08-18 11:44:11 +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
Matthew Justin Bauer
46c6719954 Respect "pluginFirst" property.
The "pluginFirst" is a boolean property of loader similar to defaultJSExensions. Setting it to true causes SystemJS to follow the plugin syntax of AMD and webpack, where the plugin name comes before the resource identifier. Old syntax was [resource ID]![plugin module ID]. With pluginFirst turned on, [plugin module ID]![resource ID]. See https://github.com/amdjs/amdjs-api/blob/master/LoaderPlugins.md for exact details. Should resolve issue #549.

so require('./index.coffee!coffee')
becomes require('coffee!./index.coffee")

Note that the old anonymous plugin support like require("file.coffee!") which is short for require("file.coffee!coffee") is not enabled. require("!file.coffee") doesn't make as much sense but if necessary it can certainly be enabled.

SystemJS builder may also need to be updated for complete support for this option.
2015-08-12 11:21:56 -05:00
guybedford
e7ac0ccb92 ie test fixes 2015-08-09 11:58:32 +02:00
guybedford
c3d6dd4165 package map corrections 2015-08-09 11:07:13 +02:00
guybedford
0a5f10a6bd sync normalize to apply package config, package env -> package env map 2015-08-09 01:04:08 +02:00
guybedford
def97e2c6b warn on invalid packages 2015-08-08 13:38:01 +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
e6af9cc623 fix console error test 2015-08-03 13:21:45 +02:00
guybedford
b679b5ce4e correct module test 2015-08-02 23:39:50 +02:00
guybedford
b1a6deeff0 module.toString() == "Module" (#646) 2015-08-02 23:25:41 +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
Vladimir Matveev
b6c7f5eb20 correctly handle duplicate entries in dependency list 2015-07-26 22:24:58 -07:00
guybedford
734facc9c5 add support for cjs globals (#591) 2015-07-24 17:48:12 +02:00
guybedford
4c2b3ac4a3 implement source maps flexibility for plugins (#598) 2015-07-24 16:59:14 +02:00
guybedford
3f41d78452 Revert "source maps error test"
This reverts commit a47af63986b60daf83a7e654b1e69506831b4dc0.
2015-07-15 16:15:01 +02:00
guybedford
a47af63986 source maps error test 2015-07-15 16:06:11 +02:00
guybedford
4b6a3700d4 Revert "plugin normalize hook support (#542)"
This reverts commit 35dcda2d4cb92f5974fd31ce2a9c28bab50e2df0.
2015-06-22 23:59:03 +02:00
guybedford
35dcda2d4c plugin normalize hook support (#542) 2015-06-22 23:58:50 +02:00
guybedford
329b4e2531 experimental package environment configuration 2015-06-22 20:43:07 +02:00
guybedford
f949ed1161 __dirname compatibility correction 2015-06-14 22:28:16 +02:00
guybedford
2fa22fe0fc __dirname compatibility (#519) 2015-06-14 22:17:21 +02:00
guybedford
427bed7908 csp fixes 2015-06-14 17:09:10 +02:00
guybedford
6a51f53940 revert back to map as primary package config mechanism 2015-06-12 21:24:59 +02:00
guybedford
134cb2e47e extension & wildcard adjustments 2015-06-12 19:42:36 +02:00
guybedford
425f87fed9 pathing corrections 2015-06-12 16:07:09 +02:00
guybedford
a87e227705 pathing adjustments 2015-06-11 18:55:22 +02:00
guybedford
72a67df4d9 boolean conditional fix 2015-06-11 13:36:51 +02:00
guybedford
1417f90dc7 require.toUrl amd support 2015-06-11 13:10:10 +02:00
guybedford
1f60635c84 multi deps shim fix (#494) 2015-06-10 15:53:06 +02:00
guybedford
f87a1df0e2 Node test baseURL fix 2015-06-02 22:59:36 +02:00
guybedford
b299e4f46d plugin fixes 2015-06-02 22:55:26 +02:00
guybedford
f868477d15 defaultJSExtensions system for backwards compat 2015-06-02 14:17:06 +02:00
guybedford
7af28b5a99 source maps adjustments, ie testing 2015-06-01 16:19:48 +02:00
guybedford
2beb2cd41d fix up transpiler loading 2015-05-31 18:19:13 +02:00