File tree Expand file tree Collapse file tree 7 files changed +14
-7
lines changed Expand file tree Collapse file tree 7 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,7 @@ scripts
1717.jshintrc
1818amplitude.min.js
1919amplitude-snippet.min.js
20+ amplitude.nocompat.min.js
21+ amplitude-segment-snippet.min.js
22+ * .log
23+ src
Original file line number Diff line number Diff line change 1+ ### 5.2.1 (March 28, 2019)
2+
3+ * Fix npm publish failure where built files were missing.
4+
15### 5.2.0 (March 28, 2019)
26
37* Stop warning when null property values are instrumented
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Please see our [installation guide](https://amplitude.zendesk.com/hc/en-us/artic
1111[ ![ npm version] ( https://badge.fury.io/js/amplitude-js.svg )] ( https://badge.fury.io/js/amplitude-js )
1212[ ![ Bower version] ( https://badge.fury.io/bo/amplitude-js.svg )] ( https://badge.fury.io/bo/amplitude-js )
1313
14- [ 5.2.0 - Released on March 28, 2019] ( https://github.com/amplitude/Amplitude-JavaScript/releases/latest )
14+ [ 5.2.1 - Released on March 28, 2019] ( https://github.com/amplitude/Amplitude-JavaScript/releases/latest )
1515
1616
1717# JavaScript SDK Reference #
Original file line number Diff line number Diff line change 11{
22 "name" : " amplitude-js" ,
33 "author" : " Amplitude <support@amplitude.com>" ,
4- "version" : " 5.2.0 " ,
4+ "version" : " 5.2.1 " ,
55 "license" : " MIT" ,
66 "description" : " Javascript library for Amplitude Analytics" ,
77 "keywords" : [
Original file line number Diff line number Diff line change 11var fs = require ( 'fs-extra' ) ;
22var path = require ( 'path' ) ;
3- var package = require ( '../package' ) ;
3+ const { version } = require ( '../package' ) ;
44var exec = require ( 'child_process' ) . exec ;
55
6- var version = package . version ;
76var cwd = process . cwd ( ) ;
87
98var file = path . join ( cwd , 'dist' , 'amplitude-' + version + '.js' ) ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ replaceTextInFile(
3030) ;
3131
3232// Update integrity hash in snippet
33- const sdkText = fs . readFileSync ( path . join ( 'dist ' , `amplitude- ${ version } - min.js` ) , 'utf-8' ) ;
33+ const sdkText = fs . readFileSync ( path . join ( '. ' , `amplitude. min.js` ) , 'utf-8' ) ;
3434const hash = crypto . createHash ( 'sha384' ) . update ( sdkText ) . digest ( 'base64' ) ;
3535replaceTextInFile (
3636 path . join ( 'src' , 'amplitude-snippet.js' ) ,
Original file line number Diff line number Diff line change 22 var amplitude = window . amplitude || { '_q' :[ ] , '_iq' :{ } } ;
33 var as = document . createElement ( 'script' ) ;
44 as . type = 'text/javascript' ;
5- as . integrity = 'sha384-7+UHB4oLzjytAiNjhUplOzn7xgZx8C5tV7Ke7xGI96rgoInU9Jzmxmha6CbA/SWo ' ;
5+ as . integrity = 'sha384-+ritBC3Uh0X9JjWcMcvcreVEixaFd4J31hRpBXl3d1WnAYLkpsNjj4ISxf5Oytx9 ' ;
66 as . crossOrigin = 'anonymous' ;
77 as . async = true ;
8- as . src = 'https://cdn.amplitude.com/libs/amplitude-5.2.0 -min.gz.js' ;
8+ as . src = 'https://cdn.amplitude.com/libs/amplitude-5.2.1 -min.gz.js' ;
99 as . onload = function ( ) { if ( ! window . amplitude . runQueuedFunctions ) { console . log ( '[Amplitude] Error: could not load SDK' ) ; } } ;
1010 var s = document . getElementsByTagName ( 'script' ) [ 0 ] ;
1111 s . parentNode . insertBefore ( as , s ) ;
You can’t perform that action at this time.
0 commit comments