Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121788574
GetFullHashRuntimeModule.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 13, 22:07
Size
664 B
Mime Type
text/x-c++
Expires
Tue, Jul 15, 22:07 (2 d)
Engine
blob
Format
Raw Data
Handle
27391364
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
GetFullHashRuntimeModule.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
*/
"use strict"
;
const
RuntimeGlobals
=
require
(
"../RuntimeGlobals"
);
const
RuntimeModule
=
require
(
"../RuntimeModule"
);
/** @typedef {import("../Compilation")} Compilation */
class
GetFullHashRuntimeModule
extends
RuntimeModule
{
constructor
()
{
super
(
"getFullHash"
);
this
.
fullHash
=
true
;
}
/**
* @returns {string} runtime code
*/
generate
()
{
const
{
runtimeTemplate
}
=
this
.
compilation
;
return
`
$
{
RuntimeGlobals
.
getFullHash
}
=
$
{
runtimeTemplate
.
returningFunction
(
JSON
.
stringify
(
this
.
compilation
.
hash
||
"XXXX"
)
)}
`
;
}
}
module
.
exports
=
GetFullHashRuntimeModule
;
Event Timeline
Log In to Comment