Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101431676
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
Mon, Feb 10, 10:02
Size
664 B
Mime Type
text/x-c++
Expires
Wed, Feb 12, 10:02 (2 d)
Engine
blob
Format
Raw Data
Handle
24146815
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